/**
 * ============================================
 * 萍乡中学校园论坛 - 静态页面通用样式
 * ============================================
 * 适用于：关于我们、社区规范、联系我们、隐私政策
 * ============================================
 */

/* ========== 可爱字体样式 ========== */
/* 字体已在 forum-theme.css 中全局引入 */

.static-page h1,
.static-page h2,
.static-page h3,
.static-page .page-header h1 {
    letter-spacing: 1px;
}

/* ========== 1. 静态页面布局 ========== */

/* 主内容容器 - 最大30px边距 */
.static-page .container {
    padding: 0 30px !important;
}

/* 内容布局调整 - 参考首页布局 */
.static-page .content-layout {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    align-items: flex-start;
}

/* 主内容区 - 撑满左侧区域 */
.static-page .content-main {
    flex: 1;
    min-width: 0;
}

/* ========== 可爱圆润基础样式 ========== */

/* 所有卡片和容器圆角加大 */
.static-page .content-section,
.static-page .info-card,
.static-page .highlight-box,
.static-page .success-box,
.static-page .warning-box,
.static-page .info-box,
.static-page .update-notice,
.static-page .penalty-card,
.static-page .contact-method,
.static-page .timeline-item,
.static-page .stat-item,
.static-page .team-member,
.static-page .rule-item {
    border-radius: 20px !important;
}

/* 按钮圆润化 */
.static-page .btn {
    border-radius: 50px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.static-page .btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(176, 58, 114, 0.25) !important;
}

/* 输入框圆润化 */
.static-page input,
.static-page textarea,
.static-page select {
    border-radius: 16px !important;
    border: 2px solid var(--border-color) !important;
    padding: 14px 18px !important;
    transition: all 0.3s ease !important;
}

.static-page input:focus,
.static-page textarea:focus,
.static-page select:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px rgba(176, 58, 114, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* 侧边栏圆角 */
.static-page .sidebar-section {
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.static-page .sidebar-header {
    border-radius: 24px 24px 0 0 !important;
}

/* 表格圆角 */
.static-page .data-table {
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.static-page .data-table th:first-child {
    border-radius: 20px 0 0 0 !important;
}

.static-page .data-table th:last-child {
    border-radius: 0 20px 0 0 !important;
}

/* ========== 2. 页脚样式（参考首页） ========== */

.footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-4) 0;
    margin-top: var(--space-8);
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.footer-logo .navbar-logo {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo .navbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ========== 3. 页面头部（可爱版） ========== */

.page-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}



.page-header h1 {
    font-size: 2.2rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(176, 58, 114, 0.1);
}

.page-header p {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

/* ========== 4. 内容区块通用样式 ========== */

.content-section {
    background: var(--bg-tertiary);
    border-radius: 24px !important;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(176, 58, 114, 0.12);
    border-color: rgba(176, 58, 114, 0.2);
}

.content-section h2 {
    color: var(--accent-primary);
    font-size: 1.6rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2::before {
    content: '✨';
    font-size: 1.3rem;
}

.content-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 16px;
    font-weight: 600;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(176, 58, 114, 0.08) 0%, rgba(176, 58, 114, 0.02) 100%);
    border-radius: 12px;
    display: inline-block;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 8px;
}

/* ========== 5. 高亮框样式（可爱版） ========== */

.highlight-box {
    background: linear-gradient(135deg, rgba(176, 58, 114, 0.1) 0%, rgba(176, 58, 114, 0.05) 100%);
    border: 2px solid rgba(176, 58, 114, 0.2);
    padding: 24px 28px;
    border-radius: 20px !important;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '💝';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.warning-box {
    background: linear-gradient(135deg, rgba(193, 77, 61, 0.1) 0%, rgba(193, 77, 61, 0.05) 100%);
    border: 2px solid rgba(193, 77, 61, 0.25);
    border-radius: 20px !important;
    padding: 24px 28px;
    margin: 20px 0;
    position: relative;
}

.warning-box::before {
    content: '⚠️';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.warning-box h4 {
    color: var(--pz-red-500);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.warning-box h4::before {
    content: '🚨';
}

.warning-box p {
    color: var(--pz-red-600);
    margin: 0;
}

.success-box {
    background: linear-gradient(135deg, rgba(61, 106, 76, 0.1) 0%, rgba(61, 106, 76, 0.05) 100%);
    border: 2px solid rgba(61, 106, 76, 0.25);
    border-radius: 20px !important;
    padding: 24px 28px;
    margin: 20px 0;
    position: relative;
}

.success-box::before {
    content: '🎉';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.success-box h4 {
    color: var(--pz-green-500);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.success-box h4::before {
    content: '✅';
}

.success-box p {
    color: var(--pz-green-600);
    margin: 0;
}

.info-box {
    background: linear-gradient(135deg, rgba(209, 172, 52, 0.1) 0%, rgba(209, 172, 52, 0.05) 100%);
    border: 2px solid rgba(209, 172, 52, 0.25);
    border-radius: 20px !important;
    padding: 24px 28px;
    margin: 20px 0;
    position: relative;
}

.info-box::before {
    content: '📌';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.info-box h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box h4::before {
    content: '💡';
}

.info-box ul {
    margin: 0;
    padding-left: 24px;
}

.info-box li {
    margin-bottom: 8px;
    position: relative;
}

.info-box li::marker {
    color: var(--accent-primary);
}

/* ========== 6. 时间线样式 ========== */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-light) 100%);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: 20px !important;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: rgba(176, 58, 114, 0.2);
    transform: translateX(8px);
}

.timeline-item::before {
    content: '🌟';
    position: absolute;
    left: -36px;
    top: 20px;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(176, 58, 114, 0.2);
}

.timeline-date {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-date::before {
    content: '📅';
}

.timeline-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== 7. 网格布局（可爱版） ========== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(176, 58, 114, 0.05) 100%);
    border-radius: 24px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(176, 58, 114, 0.2);
    box-shadow: 0 8px 25px rgba(176, 58, 114, 0.15);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #D1AC34 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 500;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.team-member {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(176, 58, 114, 0.05) 100%);
    border-radius: 24px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(176, 58, 114, 0.2);
    box-shadow: 0 12px 30px rgba(176, 58, 114, 0.15);
}

.team-member-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(209, 172, 52, 0.2) 100%);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(176, 58, 114, 0.15);
    transition: transform 0.3s ease;
}

.team-member:hover .team-member-avatar {
    transform: scale(1.1) rotate(5deg);
}

.team-member-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.team-member-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========== 8. 规则项样式 ========== */

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(176, 58, 114, 0.03) 100%);
    border-radius: 20px !important;
    margin-bottom: 16px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rule-item:hover {
    border-color: rgba(176, 58, 114, 0.15);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(176, 58, 114, 0.1);
}

.rule-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #D1AC34 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(176, 58, 114, 0.3);
}

.rule-content {
    flex: 1;
}

.rule-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ========== 9. 违规处理卡片 - 可爱圆润版 ========== */
.penalty-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.penalty-card {
    border-radius: 24px !important;
    border: 2px solid var(--border-color);
    overflow: hidden;
    background-color: var(--bg-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.penalty-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* 轻微违规 - 金色系（可爱版） */
.penalty-card.penalty-minor {
    border-color: #D1AC34;
    background: linear-gradient(135deg, rgba(209, 172, 52, 0.08) 0%, var(--bg-primary) 100%);
}

.penalty-card.penalty-minor .penalty-header {
    background: linear-gradient(135deg, rgba(209, 172, 52, 0.2) 0%, rgba(209, 172, 52, 0.1) 100%);
    color: #8A6D0B;
}

[data-theme="dark"] .penalty-card.penalty-minor .penalty-header {
    background: linear-gradient(135deg, rgba(209, 172, 52, 0.25) 0%, rgba(209, 172, 52, 0.15) 100%);
    color: #E8C547;
}

/* 一般违规 - 橙红色系（可爱版） */
.penalty-card.penalty-moderate {
    border-color: #F87171;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.08) 0%, var(--bg-primary) 100%);
}

.penalty-card.penalty-moderate .penalty-header {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2) 0%, rgba(248, 113, 113, 0.1) 100%);
    color: #C14D3D;
}

[data-theme="dark"] .penalty-card.penalty-moderate .penalty-header {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.25) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #FCA5A5;
}

/* 严重违规 - 红色系（可爱版） */
.penalty-card.penalty-severe {
    border-color: #C14D3D;
    background: linear-gradient(135deg, rgba(193, 77, 61, 0.08) 0%, var(--bg-primary) 100%);
}

.penalty-card.penalty-severe .penalty-header {
    background: linear-gradient(135deg, rgba(193, 77, 61, 0.2) 0%, rgba(193, 77, 61, 0.1) 100%);
    color: #9A3E31;
}

[data-theme="dark"] .penalty-card.penalty-severe .penalty-header {
    background: linear-gradient(135deg, rgba(193, 77, 61, 0.25) 0%, rgba(193, 77, 61, 0.15) 100%);
    color: #F87171;
}

.penalty-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    font-weight: 700;
    font-size: 1.1rem;
}

.penalty-level {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.penalty-minor .penalty-level::before {
    content: '⚠️';
}

.penalty-moderate .penalty-level::before {
    content: '🚫';
}

.penalty-severe .penalty-level::before {
    content: '⛔';
}

.penalty-icon {
    font-size: 1.8rem;
}

.penalty-body {
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .penalty-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.penalty-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.penalty-section h4::before {
    content: '📝';
}

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

.penalty-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.penalty-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========== 10. 表格样式 ========== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--bg-secondary);
}

/* ========== 10. 联系页面样式（可爱版） ========== */

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(176, 58, 114, 0.05) 100%);
    border-radius: 24px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.contact-method:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(176, 58, 114, 0.2);
    box-shadow: 0 12px 30px rgba(176, 58, 114, 0.15);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(209, 172, 52, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(176, 58, 114, 0.15);
    transition: transform 0.3s ease;
}

.contact-method:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-primary);
}

.contact-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.contact-info a {
    color: var(--accent-primary);
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 表单样式 */
.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label .required {
    color: var(--pz-red-500);
    margin-left: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* 隐藏原始 select 元素（用于自定义下拉框） */
.form-group select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ========== 11. 侧边栏导航 ========== */

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.15s ease;
    font-size: 14px;
}

.sidebar-nav a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: var(--accent-light);
    color: var(--accent-primary);
    font-weight: 500;
}

/* ========== 12. 标签样式 ========== */

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

.tag-warning {
    background: var(--pz-red-100);
    color: var(--pz-red-600);
}

.tag-danger {
    background: var(--pz-red-500);
    color: white;
}

.tag-info {
    background: var(--pz-purple-100);
    color: var(--pz-purple-600);
}

.tag-success {
    background: var(--pz-green-100);
    color: var(--pz-green-600);
}

/* ========== 13. 更新通知 ========== */

.update-notice {
    background: var(--pz-green-50);
    border: 1px solid var(--pz-green-200);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.update-notice p {
    color: var(--pz-green-600);
    margin: 0;
}

/* ========== 15. 服务器状态监控样式（主内容区版） ========== */

.server-status-main {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(176, 58, 114, 0.03) 100%);
}

.server-status-wrapper {
    padding: 8px;
}

/* 整体状态概览 */
.status-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pz-green-500);
    position: relative;
}

.status-dot.online::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--pz-green-500);
    opacity: 0.4;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2); opacity: 0; }
}

.status-text {
    font-weight: 600;
    color: var(--pz-green-500);
    font-size: 15px;
}

.uptime-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.uptime-label {
    color: var(--text-muted);
}

.uptime-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: monospace;
}

/* 指标网格 */
.status-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(176, 58, 114, 0.2);
    transform: translateY(-2px);
}

.metric-card.highlight {
    background: linear-gradient(135deg, rgba(176, 58, 114, 0.08) 0%, var(--bg-secondary) 100%);
    border-color: rgba(176, 58, 114, 0.3);
}

.metric-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

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

.metric-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}

.metric-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pz-green-500) 0%, var(--pz-green-400) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.metric-fill.memory {
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--pz-purple-400) 100%);
}

/* 延迟指示器 */
.latency-indicator {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 24px;
}

.latency-bar {
    width: 6px;
    background: var(--pz-green-500);
    border-radius: 3px;
    animation: latency-wave 1s ease-in-out infinite;
}

.latency-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.latency-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.latency-bar:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.latency-bar:nth-child(4) { height: 60%; animation-delay: 0.3s; }

.latency-indicator.medium .latency-bar {
    background: var(--pz-gold-500);
}

.latency-indicator.slow .latency-bar {
    background: var(--pz-red-500);
}

@keyframes latency-wave {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 用户头像 */
.user-avatars {
    display: flex;
    gap: -4px;
    margin-top: 8px;
}

.mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--pz-purple-400) 100%);
    border: 2px solid var(--bg-secondary);
    margin-left: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: 600;
}

.mini-avatar:first-child {
    margin-left: 0;
}

.mini-avatar.more {
    background: var(--text-muted);
}

/* 实时请求行 */
.requests-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 16px;
}

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

.requests-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: monospace;
}

.requests-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.requests-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    margin-left: auto;
}

.spark-bar {
    width: 4px;
    background: linear-gradient(to top, var(--accent-primary), var(--pz-purple-400));
    border-radius: 2px;
    transition: height 0.3s ease;
    opacity: 0.7;
}

/* 更新时间 */
.status-update-time {
    text-align: center;
    padding-top: 8px;
}

.status-update-time span {
    font-size: 12px;
    color: var(--text-muted);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .status-metrics-grid {
        grid-template-columns: 1fr;
    }

    .status-overview {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .requests-row {
        flex-wrap: wrap;
    }

    .requests-sparkline {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* ========== 14. 响应式适配 ========== */

@media (max-width: 1024px) {
    .static-page .sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .static-page .container {
        padding: 0 16px;
    }

    .static-page .content-layout {
        flex-direction: column;
        padding: 16px 0;
    }

    .static-page .content-main {
        max-width: 100%;
    }

    .static-page .sidebar {
        display: none;
    }

    .content-section {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* 页脚移动端适配 - 参考首页 */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-3) var(--space-4);
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .rule-item {
        flex-direction: column;
        gap: 8px;
    }
}
