/* =========================================================
   /assets/css/pages.css  -  各页面专属样式（由各页内联 <style> 抽取）
   约定：每页样式作用域化在 body.p-xxx 之下，
   页面通过 header.php 的 $bodyClass 输出对应 class。
   公共样式放 /assets/css/common.css。
   ========================================================= */

/* 安全网：表单控件继承页面字体（原各页 "*{...}" 重置已并入 common.css） */
button, input, select, textarea {
    font-family: inherit;
}

/* ================= p-home  (index.php) ================= */
@supports (font-variation-settings: normal){body.p-home { font-family: InterVariable, sans-serif; }}
body.p-home {
        background-color: #111111;
        background-image: url('/bg.svg');
        background-repeat: repeat;
        background-position: top left;
        background-size: 60px 34.5px;
        background-attachment: scroll;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        overflow-x: hidden;
        color: #eee;
        user-select: none;
        padding-top: 76px;
        padding-left: 20px;
        padding-right: 20px;
    }
body.p-home .fade-up {
        animation: fadeInUp 0.6s ease-out forwards;
    }
@keyframes pulse{
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
body.p-home .pulse-animation {
        animation: pulse 2s infinite;
    }
body.p-home .glass-effect {
        background: rgba(30, 30, 40, 0.7);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 20px 28px;
        transition: all 0.3s ease;
    }
body.p-home h1 {
        font-size: clamp(48px, 10vw, 96px);
        font-weight: 700;
        margin: 60px 0 20px;
        background: linear-gradient(135deg, #fff, #5c9eff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-align: center;
    }
body.p-home h2 {
        font-size: clamp(20px, 5vw, 28px);
        margin: 20px 0;
        text-align: center;
        padding: 0 16px;
    }
body.p-home #like {
        background: rgba(0, 128, 117, 0.15);
        border-radius: 8px;
        padding: 30px 40px;
        margin: 20px auto;
        text-align: center;
        border: 1px solid rgba(0, 255, 200, 0.2);
        width: 90%;
        max-width: 500px;
    }
body.p-home #count-display p {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
body.p-home #counter {
        color: #00ff20;
        font-size: 2.2rem;
        font-weight: bold;
    }
body.p-home #like-button {
        padding: 18px 48px;
        font-size: 2rem;
        background: linear-gradient(135deg, #3cb043, #2a8e2e);
        color: white;
        border: none;
        cursor: pointer;
        border-radius: 8px;
        box-shadow: 0 8px 0 #1a5a1a;
        transition: all 0.05s linear;
        font-weight: bold;
    }
body.p-home #like-button:active {
        transform: translateY(6px);
        box-shadow: 0 2px 0 #1a5a1a;
    }
body.p-home .user-count {
        font-size: 1rem;
        color: #5c9eff;
        text-align: center;
        margin: 20px auto;
        padding: 14px 24px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(92, 158, 255, 0.3);
        display: inline-block;
        width: auto;
    }
body.p-home .user-count strong {
        color: #fff;
        font-size: 1.3rem;
        margin: 0 4px;
    }
body.p-home .auth-buttons {
        display: flex;
        gap: 12px;
        justify-content: center;
        margin: 10px auto;
        flex-wrap: wrap;
    }
body.p-home .auth-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.2s;
        border: none;
        cursor: pointer;
    }
body.p-home .auth-btn.login {
        background: linear-gradient(135deg, #5c9eff, #5c9eff);
        color: white;
    }
body.p-home .auth-btn.login:hover {
        opacity: 0.85;
        transform: scale(0.97);
    }
body.p-home .auth-btn.register {
        background: rgba(255, 255, 255, 0.06);
        color: #aaa;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
body.p-home .auth-btn.register:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: scale(0.97);
    }
body.p-home .glass-effect table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }
body.p-home .glass-effect th,
body.p-home .glass-effect td {
        border: 1px solid #0fe;
        padding: 8px 12px;
        text-align: left;
    }
body.p-home .glass-effect th {
        background: rgba(0, 255, 238, 0.2);
        font-weight: 600;
    }
@media (max-width: 768px){body.p-home .glass-effect table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }}
body.p-home hr {
        margin: 60px auto;
        width: 80%;
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    }
body.p-home #copyright {
        margin: 30px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
body.p-home .text-small {
        font-size: 12px;
        color: #888;
        text-align: center;
        width: 90%;
        margin: 0 auto;
    }
body.p-home #ga {
        width: 16px;
        height: 16px;
        display: inline-block;
        vertical-align: middle;
        margin: 0 4px;
    }
body.p-home .uptime-display {
        font-size: 14px;
        color: #888;
        text-align: center;
        margin: 8px auto 16px;
        padding: 8px 20px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: inline-block;
        width: auto;
    }
body.p-home .uptime-display i {
        margin-right: 8px;
    }
body.p-home .uptime-display strong {
        color: #5c9eff;
        font-weight: 500;
    }
body.p-home #uptime-seconds {
        display: block;
    }
body.p-home .notification-dot {
        position: absolute;
        top: -4px;
        right: -6px;
        width: 12px;
        height: 12px;
        background: #ff4444;
        border-radius: 50%;
        border: 2px solid #1a1a1f;
        animation: pulse-dot 1.5s ease-in-out infinite;
    }
@keyframes pulse-dot{
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.2); }
    }
body.p-home .notification-toast {
        background: rgba(30, 30, 38, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 14px 16px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
        pointer-events: auto;
        animation: slideInRight 0.4s ease-out forwards;
        min-width: 280px;
        max-width: 100%;
    }
@keyframes slideInRight{
        from { opacity: 0; transform: translateX(60px); }
        to { opacity: 1; transform: translateX(0); }
    }
@keyframes slideOutRight{
        from { opacity: 1; transform: translateX(0); }
        to { opacity: 0; transform: translateX(60px); }
    }
body.p-home .notification-toast.removing {
        animation: slideOutRight 0.3s ease-in forwards;
    }
body.p-home .notification-toast .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }
body.p-home .notification-toast .header .title {
        font-size: 12px;
        font-weight: 600;
        color: #5c9eff;
        letter-spacing: 0.5px;
    }
body.p-home .notification-toast .header .close-btn {
        background: none;
        border: none;
        color: #666;
        cursor: pointer;
        font-size: 14px;
        padding: 0 4px;
        transition: color 0.2s;
    }
body.p-home .notification-toast .header .close-btn:hover {
        color: #eee;
    }
body.p-home .notification-toast .body {
        font-size: 14px;
        color: #ddd;
        line-height: 1.5;
    }
body.p-home .notification-toast .body strong {
        color: #5c9eff;
    }
body.p-home .notification-toast .footer {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        gap: 10px;
    }
body.p-home .notification-toast .footer .view-btn {
        padding: 6px 16px;
        background: linear-gradient(135deg, #5c9eff, #5c9eff);
        border: none;
        border-radius: 8px;
        color: white;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.2s;
    }
body.p-home .notification-toast .footer .view-btn:hover {
        opacity: 0.85;
        transform: scale(0.97);
    }
@media (max-width: 768px){body.p-home #like {
            padding: 20px 20px;
        }
body.p-home #like-button {
            padding: 14px 30px;
            font-size: 1.6rem;
        }
body.p-home .glass-effect {
            padding: 16px 20px;
        }
body.p-home .user-count {
            font-size: 0.9rem;
            padding: 10px 20px;
        }
body.p-home h1 {
            margin-top: 30px;
        }
body.p-home .auth-btn {
            padding: 10px 20px;
            font-size: 14px;
        }
body.p-home {
            padding-top: 68px;
        }}
@media (max-width: 480px){body.p-home #like-button {
            padding: 12px 24px;
            font-size: 1.3rem;
        }
body.p-home #counter {
            font-size: 1.8rem;
        }
body.p-home .glass-effect th,
body.p-home .glass-effect td {
            padding: 6px 8px;
            font-size: 12px;
        }
body.p-home .auth-btn {
            padding: 8px 16px;
            font-size: 13px;
        }
body.p-home {
            padding-top: 60px;
        }
body.p-home #notificationContainer {
            bottom: 12px;
            right: 12px;
            width: calc(100vw - 24px);
        }
body.p-home .notification-toast {
            min-width: unset;
            padding: 12px 14px;
            border-radius: 8px;
        }
body.p-home .notification-toast .body {
            font-size: 13px;
        }}
body.p-home p[style*="position:fixed"] {
        position: fixed;
        bottom: 16px;
        right: 16px;
        z-index: 99;
        color: #aaa;
        font-size: 12px;
        background: rgba(0,0,0,0.5);
        padding: 6px 12px;
        border-radius: 8px;
        backdrop-filter: blur(4px);
        pointer-events: none;
    }
body.p-home code {
        font-family: 'Consolas', 'Courier New', monospace;
        background-color: #222;
        padding: 2px 6px;
        border-radius: 4px;
        border: 1px solid #3a3a3a;
        color: #66e9df;
        font-size: 0.9em;
    }

/* ================= p-4d  (4d/index.php) ================= */
body.p-4d #fh {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-4d #fh:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
body.p-4d #fh i {
            font-size: 13px;
        }
body.p-4d {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    ;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-4d .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
body.p-4d header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }
body.p-4d h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
body.p-4d .subtitle {
            font-size: 1.2rem;
            color: #d1d8e0;
            max-width: 800px;
            margin: 0 auto;
        }
body.p-4d .content {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            margin-bottom: 30px;
        }
body.p-4d .visualization-section {
            flex: 1;
            min-width: 300px;
            background-color: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }
body.p-4d .controls-section {
            flex: 1;
            min-width: 300px;
            background-color: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }
body.p-4d h2 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #fad390;
            border-bottom: 2px solid rgba(250, 211, 144, 0.3);
            padding-bottom: 8px;
        }
body.p-4d #hypercube-container {
            width: 100%;
            height: 500px;
            border-radius: 8px;
            overflow: hidden;
            background-color: rgba(0, 0, 0, 0.4);
        }
body.p-4d .control-group {
            margin-bottom: 25px;
        }
body.p-4d .control-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-weight: 600;
        }
body.p-4d .slider-container {
            margin-bottom: 15px;
        }
body.p-4d .slider-value {
            color: #fad390;
            font-weight: bold;
        }
body.p-4d input[type="range"] {
            width: 100%;
            height: 10px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            outline: none;
            -webkit-appearance: none;
        }
body.p-4d input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #fad390;
            cursor: pointer;
            box-shadow: 0 0 10px rgba(250, 211, 144, 0.5);
        }
body.p-4d .checkbox-group {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
body.p-4d .checkbox-group label {
            margin-left: 10px;
            cursor: pointer;
        }
body.p-4d input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
body.p-4d .projection-info {
            background-color: rgba(92, 158, 255, 0.4);
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            font-size: 0.95rem;
        }
body.p-4d .explanation {
            background-color: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            padding: 25px;
            margin-top: 30px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }
body.p-4d .explanation h2 {
            margin-bottom: 15px;
        }
body.p-4d .explanation p {
            margin-bottom: 15px;
        }
body.p-4d .dimension-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
body.p-4d .dimension-item {
            background-color: rgba(92, 158, 255, 0.4);
            padding: 15px;
            border-radius: 8px;
        }
body.p-4d .dimension-item h3 {
            color: #fad390;
            margin-bottom: 5px;
        }
body.p-4d footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: #a5b1c2;
            font-size: 0.9rem;
        }
@media (max-width: 768px){body.p-4d .content {
                flex-direction: column;
            }
body.p-4d h1 {
                font-size: 2.2rem;
            }
body.p-4d #hypercube-container {
                height: 400px;
            }}
body.p-4d {
    padding-top: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}
body.p-4d {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-4d .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-4d {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-4d {
        padding-top: 60px;
    }}

/* ================= p-ai  (ai/index.php) ================= */
body.p-ai {
            background-color: #111111;
            background-image: url('/bg.svg');
            background-repeat: repeat;
            background-position: top left;
            background-size: 60px 34.5px;
            background-attachment: fixed;
            font-family: Inter, "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
            font-feature-settings: "liga" 1, "calt" 1;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px;
            padding-top: 76px;
            overflow: hidden;
        }
body.p-ai .chat-container {
            width: 100%;
            max-width: 820px;
            height: 85vh;
            height: 85dvh;
            max-height: 780px;
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
body.p-ai .chat-header {
            background: rgba(20, 20, 28, 0.6);
            padding: 16px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            position: relative;
        }
body.p-ai .chat-header h1 {
            font-size: 18px;
            font-weight: 600;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 0.5px;
        }
body.p-ai .chat-header .subtitle {
            font-size: 12px;
            color: #666;
            margin-left: 10px;
            font-weight: 400;
            -webkit-text-fill-color: #666;
        }
body.p-ai .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px 20px;
            background: #33446055;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }
body.p-ai .chat-messages::-webkit-scrollbar {
            width: 4px;
        }
body.p-ai .chat-messages::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 4px;
        }
body.p-ai .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(92, 158, 255, 0.3);
            border-radius: 4px;
        }
body.p-ai .message {
            margin-bottom: 16px;
            display: flex;
            animation: fadeInUpAi 0.35s ease-out;
        }
@keyframes fadeInUpAi{
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }
body.p-ai .message.user {
            justify-content: flex-end;
            flex-wrap: wrap;
        }
body.p-ai .message.assistant {
            justify-content: flex-start;
            align-items: flex-start;
        }
body.p-ai .message-content {
            max-width: 80%;
            padding: 10px 16px;
            border-radius: 8px;
            word-wrap: break-word;
            font-size: 14px;
            line-height: 1.6;
            letter-spacing: 0.2px;
        }
body.p-ai .message.user .message-content {
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            color: #f0f0f0;
            border-bottom-right-radius: 4px;
            border: 1px solid rgba(92, 158, 255, 0.2);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
body.p-ai .message.assistant .message-content {
            background: rgba(30, 38, 50, 0.9);
            color: #e8e8e8;
            border-bottom-left-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
body.p-ai .avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #1a3a5a, #0d2a4a);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #5c9eff;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid rgba(92, 158, 255, 0.25);
            flex-shrink: 0;
            margin-right: 10px;
            font-family: inherit;
        }
body.p-ai .user-image-container {
            width: 100%;
            display: flex;
            justify-content: flex-end;
            margin-top: 4px;
        }
body.p-ai .user-image {
            max-width: 200px;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
body.p-ai .user-image img {
            width: 100%;
            height: auto;
            display: block;
        }
body.p-ai .typing-indicator {
            display: flex;
            align-items: center;
            margin-bottom: 16px;
            margin-left: 42px;
        }
body.p-ai .typing-dots {
            background: rgba(30, 38, 50, 0.9);
            padding: 10px 16px;
            border-radius: 8px;
            border-bottom-left-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
body.p-ai .typing-dots span {
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #5c9eff;
            margin: 0 3px;
            animation: typing 1.4s infinite;
            opacity: 0.5;
        }
body.p-ai .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
body.p-ai .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing{
            0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
            30% { transform: translateY(-8px); opacity: 1; }
        }
body.p-ai .chat-input-area {
            padding: 14px 20px;
            background: rgba(20, 20, 28, 0.6);
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            gap: 10px;
            align-items: center;
            flex-shrink: 0;
            flex-wrap: wrap;
        }
body.p-ai .chat-input-area input {
            flex: 1 1 auto;
            min-width: 0;
            padding: 12px 18px;
            background: rgba(22, 30, 44, 0.8);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            outline: none;
            font-size: 14px;
            color: #e0e0e0;
            transition: all 0.25s;
        }
body.p-ai .chat-input-area input:focus {
            border-color: rgba(92, 158, 255, 0.5);
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.1);
            background: rgba(30, 40, 55, 0.9);
        }
body.p-ai .chat-input-area input::placeholder {
            color: rgba(200, 200, 200, 0.35);
            font-size: 13px;
        }
body.p-ai .button-group {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }
body.p-ai .chat-input-area button,
body.p-ai .btn-upload {
            padding: 12px 22px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: inherit;
        }
body.p-ai .btn-send {
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            color: white;
            border: 1px solid rgba(92, 158, 255, 0.2);
        }
body.p-ai .btn-send:hover {
            opacity: 0.85;
            transform: scale(0.97);
        }
body.p-ai .btn-send:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
        }
body.p-ai .btn-clear {
            background: rgba(255, 80, 80, 0.12);
            color: #ff8888;
            border: 1px solid rgba(255, 80, 80, 0.15);
        }
body.p-ai .btn-clear:hover {
            background: rgba(255, 80, 80, 0.2);
        }
body.p-ai .btn-clear:active {
            transform: scale(0.95);
        }
body.p-ai .btn-upload {
            padding: 12px 14px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            color: #aaa;
            cursor: pointer;
        }
body.p-ai .btn-upload:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(92, 158, 255, 0.3);
            color: #eee;
        }
body.p-ai .btn-upload.has-image {
            border-color: rgba(76, 217, 100, 0.4);
            color: #4cd964;
        }
body.p-ai .image-preview-area {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 8px 4px 0 4px;
        }
body.p-ai .image-preview-item {
            position: relative;
            width: 64px;
            height: 64px;
            border-radius: 8px;
            overflow: hidden;
            border: 1.5px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.3);
            animation: fadeInUpAi 0.2s ease-out;
        }
body.p-ai .image-preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
body.p-ai .image-preview-item .remove-image {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.7);
            border: none;
            color: #ff6b6b;
            font-size: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            opacity: 0;
        }
body.p-ai .image-preview-item:hover .remove-image {
            opacity: 1;
        }
body.p-ai .image-preview-item .remove-image:hover {
            background: #ff6b6b;
            color: white;
        }
body.p-ai .markdown-body {
            font-size: 14px;
            line-height: 1.6;
        }
body.p-ai .markdown-body p {
            margin-bottom: 6px;
        }
body.p-ai .markdown-body p:last-child {
            margin-bottom: 0;
        }
body.p-ai .markdown-body code {
            background: rgba(0, 0, 0, 0.35);
            padding: 2px 8px;
            border-radius: 4px;
            font-family: "Consolas", "Courier New", monospace;
            font-size: 13px;
            color: #66e9df;
        }
body.p-ai .markdown-body pre {
            background: rgba(0, 0, 0, 0.4);
            padding: 12px 16px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 8px 0;
        }
body.p-ai .markdown-body pre code {
            background: none;
            padding: 0;
            color: #e0e0e0;
            font-size: 13px;
        }
body.p-ai .markdown-body ul,
body.p-ai .markdown-body ol {
            margin: 6px 0;
            padding-left: 22px;
        }
body.p-ai .markdown-body li {
            margin: 3px 0;
        }
body.p-ai .markdown-body h1,
body.p-ai .markdown-body h2,
body.p-ai .markdown-body h3 {
            margin: 10px 0 6px;
            font-weight: 600;
            color: #eef;
        }
body.p-ai .markdown-body h1 { font-size: 1.3rem; }
body.p-ai .markdown-body h2 { font-size: 1.15rem; }
body.p-ai .markdown-body h3 { font-size: 1.05rem; }
body.p-ai .markdown-body blockquote {
            border-left: 3px solid #5c9eff;
            margin: 8px 0;
            padding-left: 14px;
            color: #999;
        }
body.p-ai .markdown-body table {
            border-collapse: collapse;
            width: 100%;
            margin: 8px 0;
        }
body.p-ai .markdown-body th,
body.p-ai .markdown-body td {
            border: 1px solid rgba(92, 158, 255, 0.2);
            padding: 6px 12px;
            text-align: left;
        }
body.p-ai .markdown-body th {
            background: rgba(92, 158, 255, 0.08);
            font-weight: 600;
        }
body.p-ai .markdown-body a {
            color: #5c9eff;
            text-decoration: none;
        }
body.p-ai .markdown-body a:hover {
            text-decoration: underline;
        }
body.p-ai .markdown-body strong {
            color: #5c9eff;
        }
body.p-ai .markdown-body hr {
            border: none;
            height: 1px;
            background: rgba(255, 255, 255, 0.08);
            margin: 10px 0;
        }
@media (max-width: 768px){body.p-ai {
                padding: 10px;
                padding-top: 68px;
            }
body.p-ai .chat-container {
                height: 92vh;
                height: 92dvh;
                max-height: none;
                border-radius: 8px;
            }
body.p-ai .chat-header {
                padding: 12px 16px;
            }
body.p-ai .chat-header h1 {
                font-size: 16px;
            }
body.p-ai .chat-header .subtitle {
                font-size: 10px;
                margin-left: 6px;
            }
body.p-ai .chat-messages {
                padding: 14px 12px;
            }
body.p-ai .message-content {
                font-size: 13px;
                max-width: 88%;
                padding: 8px 14px;
            }
body.p-ai .avatar {
                width: 28px;
                height: 28px;
                font-size: 11px;
                margin-right: 6px;
            }
body.p-ai .typing-indicator {
                margin-left: 34px;
            }
body.p-ai .chat-input-area {
                padding: 10px 12px;
                gap: 8px;
            }
body.p-ai .chat-input-area input {
                padding: 10px 14px;
                font-size: 13px;
                flex: 1 1 100%;
            }
body.p-ai .button-group {
                width: 100%;
                justify-content: space-between;
            }
body.p-ai .chat-input-area button,
body.p-ai .btn-upload {
                padding: 10px 16px;
                font-size: 13px;
                flex: 1;
                justify-content: center;
            }
body.p-ai .markdown-body {
                font-size: 13px;
            }
body.p-ai .markdown-body code {
                font-size: 12px;
            }
body.p-ai .user-image {
                max-width: 150px;
            }}
@media (max-width: 480px){body.p-ai {
                padding: 6px;
                padding-top: 60px;
            }
body.p-ai .chat-container {
                border-radius: 8px;
                height: 94vh;
                height: 94dvh;
            }
body.p-ai .chat-header {
                padding: 10px 12px;
            }
body.p-ai .chat-header h1 {
                font-size: 14px;
            }
body.p-ai .chat-header .subtitle {
                display: none;
            }
body.p-ai .chat-messages {
                padding: 10px 10px;
            }
body.p-ai .message {
                margin-bottom: 12px;
            }
body.p-ai .message-content {
                font-size: 12px;
                padding: 8px 12px;
                max-width: 92%;
            }
body.p-ai .avatar {
                width: 24px;
                height: 24px;
                font-size: 10px;
                border-radius: 8px;
                margin-right: 6px;
            }
body.p-ai .typing-indicator {
                margin-left: 30px;
            }
body.p-ai .typing-dots {
                padding: 8px 12px;
            }
body.p-ai .typing-dots span {
                width: 5px;
                height: 5px;
                margin: 0 2px;
            }
body.p-ai .chat-input-area {
                padding: 8px 10px;
                gap: 6px;
            }
body.p-ai .chat-input-area input {
                padding: 8px 12px;
                font-size: 12px;
            }
body.p-ai .chat-input-area button,
body.p-ai .btn-upload {
                padding: 8px 12px;
                font-size: 12px;
                gap: 4px;
            }
body.p-ai .markdown-body {
                font-size: 12px;
            }
body.p-ai .markdown-body code {
                font-size: 11px;
            }
body.p-ai .markdown-body pre {
                padding: 8px 10px;
            }
body.p-ai .user-image {
                max-width: 120px;
            }}
@media (hover: none) and (pointer: coarse){body.p-ai .btn-send:hover,
body.p-ai .btn-clear:hover {
                transform: none;
                opacity: 1;
            }
body.p-ai .btn-send:active {
                transform: scale(0.95);
                opacity: 0.7;
            }
body.p-ai .btn-clear:active {
                transform: scale(0.95);
            }}
body.p-ai .site-logo {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 999;
            display: block;
            width: 100px;
            height: 100px;
            transition: all 0.3s ease;
        }
body.p-ai .site-logo:hover {
            transform: scale(1.05);
        }
body.p-ai .logo-img {
            width: 100%;
            height: 100%;
            display: block;
        }
@media (max-width: 480px){body.p-ai .site-logo {
                width: 80px;
                height: 80px;
                top: 10px;
                left: 10px;
            }}
body.p-ai .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
body.p-ai ::-webkit-scrollbar {
            width: 6px;
        }
body.p-ai ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-ai ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }

/* ================= p-ball  (ball/index.php) ================= */
body.p-ball #fh {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-ball #fh:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
body.p-ball #fh i {
            font-size: 13px;
        }
body.p-ball {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-ball .fade-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }
body.p-ball .container {
            max-width: 1200px;
            margin: 0 auto;
        }
body.p-ball header {
            text-align: center;
            padding: 16px 0 20px;
            margin-bottom: 16px;
        }
body.p-ball h1 {
            font-size: clamp(28px, 5vw, 44px);
            font-weight: 700;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 4px;
        }
body.p-ball .tagline {
            font-size: 14px;
            color: #888;
        }
body.p-ball .tagline i {
            color: #5c9eff;
            margin-right: 6px;
        }
body.p-ball .main-content {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 24px;
        }
body.p-ball .sandbox-container {
            flex: 1;
            min-width: 280px;
            min-height: 460px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            overflow: hidden;
            position: relative;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        }
body.p-ball #sandbox {
            width: 100%;
            height: 100%;
            cursor: crosshair;
            display: block;
        }
body.p-ball .controls {
            flex: 0 0 280px;
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }
body.p-ball .controls:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-ball .controls h2 {
            font-size: 18px;
            color: #5c9eff;
            margin-bottom: 18px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            gap: 10px;
        }
body.p-ball .controls h2 i {
            color: #5c9eff;
        }
body.p-ball .shape-selector {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }
body.p-ball .shape-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            color: #aaa;
            padding: 12px 8px;
            cursor: pointer;
            transition: all 0.25s;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }
body.p-ball .shape-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }
body.p-ball .shape-btn.active {
            background: rgba(92, 158, 255, 0.15);
            border-color: rgba(92, 158, 255, 0.3);
            color: #5c9eff;
        }
body.p-ball .shape-btn i {
            font-size: 1.2rem;
        }
body.p-ball .shape-btn span {
            font-size: 11px;
        }
body.p-ball .slider-container {
            margin-bottom: 16px;
        }
body.p-ball .slider-container label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
            font-size: 13px;
            color: #aaa;
        }
body.p-ball .slider-container label i {
            color: #5c9eff;
            margin-right: 6px;
        }
body.p-ball .slider-container label span {
            color: #5c9eff;
            font-weight: 600;
        }
body.p-ball .slider {
            width: 100%;
            height: 6px;
            -webkit-appearance: none;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            outline: none;
            transition: all 0.2s;
        }
body.p-ball .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            cursor: pointer;
            box-shadow: 0 0 12px rgba(92, 158, 255, 0.3);
        }
body.p-ball .slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            cursor: pointer;
            border: none;
        }
body.p-ball .action-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 16px;
        }
body.p-ball .action-btn {
            padding: 10px 12px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: inherit;
        }
body.p-ball .action-btn:active {
            transform: scale(0.95);
        }
body.p-ball .action-btn.primary {
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            color: white;
        }
body.p-ball .action-btn.primary:hover {
            opacity: 0.85;
            transform: scale(0.97);
        }
body.p-ball .action-btn.danger {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
        }
body.p-ball .action-btn.danger:hover {
            opacity: 0.85;
            transform: scale(0.97);
        }
body.p-ball .action-btn.warning {
            background: linear-gradient(135deg, #f39c12, #e67e22);
            color: white;
        }
body.p-ball .action-btn.warning:hover {
            opacity: 0.85;
            transform: scale(0.97);
        }
body.p-ball .action-btn.secondary {
            background: rgba(255, 255, 255, 0.06);
            color: #aaa;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
body.p-ball .action-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: scale(0.97);
        }
body.p-ball .stats {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 14px 16px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px 16px;
        }
body.p-ball .stats p {
            font-size: 12px;
            color: #888;
            display: flex;
            align-items: center;
            gap: 6px;
        }
body.p-ball .stats p i {
            color: #5c9eff;
            width: 16px;
        }
body.p-ball .stats p strong {
            color: #eef;
            font-weight: 600;
        }
body.p-ball .stats .collision-info {
            color: #ff6b6b;
            grid-column: span 2;
            text-align: center;
            padding-top: 6px;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
        }
body.p-ball .stats .collision-info i {
            color: #ff6b6b;
        }
body.p-ball .instructions {
            background: rgba(30, 30, 38, 0.5);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            padding: 18px 22px;
            font-size: 13px;
            line-height: 1.6;
            margin-top: 20px;
        }
body.p-ball .instructions h3 {
            color: #5c9eff;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
        }
body.p-ball .instructions h3 i {
            color: #5c9eff;
        }
body.p-ball .instructions ul {
            padding-left: 20px;
            margin-bottom: 8px;
        }
body.p-ball .instructions ul li {
            margin-bottom: 6px;
            color: #aaa;
        }
body.p-ball .instructions ul li strong {
            color: #ddd;
        }
body.p-ball footer {
            text-align: center;
            padding: 16px 0 0;
            color: #555;
            font-size: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            margin-top: 16px;
        }
body.p-ball footer i {
            color: #5c9eff;
        }
body.p-ball .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
@media (max-width: 768px){body.p-ball {
                padding: 12px 8px 20px;
            }
body.p-ball .main-content {
                flex-direction: column;
                gap: 14px;
            }
body.p-ball .controls {
                flex: 1;
                width: 100%;
                padding: 16px;
                border-radius: 8px;
            }
body.p-ball .sandbox-container {
                min-height: 340px;
            }
body.p-ball .shape-selector {
                gap: 8px;
            }
body.p-ball .shape-btn {
                padding: 10px 6px;
            }
body.p-ball .shape-btn i {
                font-size: 1rem;
            }
body.p-ball .shape-btn span {
                font-size: 10px;
            }
body.p-ball .action-buttons {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
body.p-ball .action-btn {
                padding: 8px 12px;
                font-size: 12px;
            }
body.p-ball .stats {
                grid-template-columns: 1fr 1fr;
                gap: 4px 12px;
                padding: 12px 14px;
            }
body.p-ball .stats p {
                font-size: 11px;
            }
body.p-ball .instructions {
                padding: 14px 16px;
                font-size: 12px;
            }
body.p-ball .instructions h3 {
                font-size: 14px;
            }}
@media (max-width: 480px){body.p-ball {
                padding: 8px 4px 16px;
            }
body.p-ball .sandbox-container {
                min-height: 260px;
                border-radius: 8px;
            }
body.p-ball .controls {
                padding: 12px;
                border-radius: 8px;
            }
body.p-ball .controls h2 {
                font-size: 15px;
                margin-bottom: 12px;
            }
body.p-ball .shape-selector {
                grid-template-columns: repeat(3, 1fr);
                gap: 6px;
            }
body.p-ball .shape-btn {
                padding: 8px 4px;
                border-radius: 8px;
            }
body.p-ball .shape-btn i {
                font-size: 0.9rem;
            }
body.p-ball .shape-btn span {
                font-size: 9px;
            }
body.p-ball .slider-container {
                margin-bottom: 12px;
            }
body.p-ball .slider-container label {
                font-size: 12px;
            }
body.p-ball .action-buttons {
                grid-template-columns: 1fr 1fr;
                gap: 6px;
            }
body.p-ball .action-btn {
                padding: 8px 10px;
                font-size: 11px;
                border-radius: 8px;
            }
body.p-ball .stats {
                grid-template-columns: 1fr 1fr;
                gap: 2px 8px;
                padding: 10px 12px;
            }
body.p-ball .stats p {
                font-size: 10px;
            }
body.p-ball .stats p i {
                width: 14px;
                font-size: 10px;
            }
body.p-ball .instructions {
                padding: 12px 14px;
                font-size: 11px;
                border-radius: 8px;
            }
body.p-ball .instructions h3 {
                font-size: 13px;
            }
body.p-ball .instructions ul {
                padding-left: 16px;
            }
body.p-ball .instructions ul li {
                margin-bottom: 4px;
            }
body.p-ball .watermark {
                font-size: 10px;
                bottom: 6px;
                right: 8px;
            }
body.p-ball footer {
                font-size: 11px;
            }}
body.p-ball ::-webkit-scrollbar {
            width: 4px;
        }
body.p-ball ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-ball ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
body.p-ball {
    padding-top: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}
body.p-ball {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-ball .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-ball {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-ball {
        padding-top: 60px;
    }}

/* ================= p-base  (base/index.php) ================= */
body.p-base #fh {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-base #fh:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
body.p-base #fh i {
            font-size: 13px;
        }
body.p-base {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-base .fade-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }
body.p-base h1 {
            font-size: clamp(40px, 8vw, 64px);
            font-weight: 700;
            margin-bottom: 32px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }
body.p-base .card {
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 32px 28px;
            width: 100%;
            max-width: 520px;
            transition: all 0.3s ease;
        }
body.p-base .card:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-base .card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 18px;
            color: #5c9eff;
            margin-bottom: 20px;
        }
body.p-base .card-title i {
            color: #5c9eff;
        }
body.p-base .error-message {
            background: rgba(255, 80, 80, 0.12);
            border: 1px solid rgba(255, 80, 80, 0.2);
            border-radius: 8px;
            padding: 10px 16px;
            color: #ff8888;
            font-size: 14px;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
body.p-base .error-message i {
            color: #ff6b6b;
        }
body.p-base .form-group {
            margin-bottom: 18px;
        }
body.p-base .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #aaa;
            margin-bottom: 6px;
        }
body.p-base .form-group label i {
            margin-right: 8px;
            color: #5c9eff;
            width: 18px;
        }
body.p-base .form-group input {
            width: 100%;
            padding: 12px 16px;
            background: rgba(20, 20, 25, 0.9);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            color: #f0f0f0;
            font-size: 16px;
            outline: none;
            transition: all 0.25s;
        }
body.p-base .form-group input:focus {
            border-color: rgba(92, 158, 255, 0.5);
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.1);
            background: rgba(30, 40, 55, 0.9);
        }
body.p-base .form-group input::placeholder {
            color: #555;
            font-size: 14px;
        }
body.p-base .form-group input[type="number"] {
            -moz-appearance: textfield;
        }
body.p-base .form-group input[type="number"]::-webkit-outer-spin-button,
body.p-base .form-group input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
body.p-base .btn-submit {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
body.p-base .btn-submit:hover {
            opacity: 0.85;
            transform: scale(0.98);
        }
body.p-base .btn-submit:active {
            transform: scale(0.96);
        }
body.p-base .result-area {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
body.p-base .result-label {
            font-size: 14px;
            color: #aaa;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }
body.p-base .result-label i {
            color: #4cd964;
        }
body.p-base .result-value {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            padding: 14px 20px;
            font-size: 24px;
            font-weight: 600;
            color: #5c9eff;
            font-family: "Consolas", "Courier New", monospace;
            word-break: break-all;
            user-select: all;
            min-height: 60px;
            display: flex;
            align-items: center;
        }
body.p-base .result-value.empty {
            color: #444;
            font-weight: 400;
            font-size: 14px;
        }
body.p-base .result-value i {
            margin-right: 10px;
            color: #555;
        }
body.p-base .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
@media (max-width: 768px){body.p-base {
                padding: 16px;
                justify-content: flex-start;
                padding-top: 40px;
            }
body.p-base h1 {
                margin-bottom: 24px;
            }
body.p-base .card {
                padding: 24px 20px;
                border-radius: 8px;
            }
body.p-base .card-title {
                font-size: 16px;
            }
body.p-base .form-group input {
                padding: 10px 14px;
                font-size: 15px;
            }
body.p-base .btn-submit {
                padding: 12px;
                font-size: 15px;
            }
body.p-base .result-value {
                font-size: 20px;
                padding: 12px 16px;
            }}
@media (max-width: 480px){body.p-base {
                padding: 12px;
                padding-top: 30px;
            }
body.p-base h1 {
                font-size: 32px;
                margin-bottom: 18px;
            }
body.p-base .card {
                padding: 18px 16px;
                border-radius: 8px;
            }
body.p-base .card-title {
                font-size: 14px;
                margin-bottom: 14px;
            }
body.p-base .form-group {
                margin-bottom: 14px;
            }
body.p-base .form-group label {
                font-size: 13px;
            }
body.p-base .form-group input {
                padding: 8px 12px;
                font-size: 14px;
                border-radius: 8px;
            }
body.p-base .btn-submit {
                padding: 10px;
                font-size: 14px;
                border-radius: 8px;
            }
body.p-base .result-area {
                margin-top: 16px;
                padding-top: 16px;
            }
body.p-base .result-label {
                font-size: 13px;
            }
body.p-base .result-value {
                font-size: 17px;
                padding: 10px 14px;
                min-height: 48px;
                border-radius: 8px;
            }
body.p-base .watermark {
                font-size: 10px;
                bottom: 8px;
                right: 10px;
            }}
body.p-base ::-webkit-scrollbar {
            width: 6px;
        }
body.p-base ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-base ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
body.p-base {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-base .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-base {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-base {
        padding-top: 60px;
    }}

/* ================= p-chcred  (change_credentials/index.php) ================= */
body.p-chcred {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-chcred .fade-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }
body.p-chcred h1 {
            font-size: clamp(40px, 8vw, 72px);
            font-weight: 700;
            margin-bottom: 24px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }
body.p-chcred .card {
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 32px 28px;
            width: 100%;
            max-width: 480px;
            transition: all 0.3s ease;
        }
body.p-chcred .card:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-chcred .card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 20px;
            font-weight: 600;
            color: #5c9eff;
            margin-bottom: 24px;
            text-align: center;
            justify-content: center;
        }
body.p-chcred .card-title i {
            color: #5c9eff;
        }
body.p-chcred .message {
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
body.p-chcred .message.success {
            background: rgba(76, 217, 100, 0.12);
            border: 1px solid rgba(76, 217, 100, 0.2);
            color: #4cd964;
        }
body.p-chcred .message.error {
            background: rgba(255, 80, 80, 0.12);
            border: 1px solid rgba(255, 80, 80, 0.2);
            color: #ff6b6b;
        }
body.p-chcred .message i {
            font-size: 18px;
        }
body.p-chcred .form-group {
            margin-bottom: 18px;
        }
body.p-chcred .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #aaa;
            margin-bottom: 6px;
        }
body.p-chcred .form-group label i {
            margin-right: 8px;
            color: #5c9eff;
            width: 18px;
        }
body.p-chcred .form-group input[type="password"] {
            width: 100%;
            padding: 12px 16px;
            background: rgba(20, 20, 25, 0.9);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            color: #f0f0f0;
            font-size: 15px;
            outline: none;
            transition: all 0.25s;
            box-sizing: border-box;
        }
body.p-chcred .form-group input[type="password"]:focus {
            border-color: rgba(92, 158, 255, 0.5);
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.1);
            background: rgba(30, 40, 55, 0.9);
        }
body.p-chcred .form-group input[type="password"].error-border {
            border-color: #ff6b6b;
            box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.15);
        }
body.p-chcred .form-group .error-message {
            display: block;
            font-size: 12px;
            color: #ff6b6b;
            margin-top: 4px;
            min-height: 18px;
        }
body.p-chcred .btn-submit {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-family: inherit;
            margin-top: 4px;
        }
body.p-chcred .btn-submit:hover {
            opacity: 0.85;
            transform: scale(0.98);
        }
body.p-chcred .btn-submit:active {
            transform: scale(0.96);
        }
body.p-chcred .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 20px;
            color: #5c9eff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }
body.p-chcred .back-link:hover {
            color: #5c9eff;
            transform: translateX(-4px);
        }
body.p-chcred .back-link i {
            font-size: 13px;
        }
body.p-chcred .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
@media (max-width: 768px){body.p-chcred {
                padding: 16px;
            }
body.p-chcred .card {
                padding: 24px 20px;
                border-radius: 8px;
            }
body.p-chcred .card-title {
                font-size: 18px;
            }
body.p-chcred .form-group input[type="password"] {
                padding: 10px 14px;
                font-size: 14px;
            }
body.p-chcred .btn-submit {
                padding: 12px;
                font-size: 15px;
            }}
@media (max-width: 480px){body.p-chcred {
                padding: 12px;
            }
body.p-chcred h1 {
                font-size: 32px;
                margin-bottom: 16px;
            }
body.p-chcred .card {
                padding: 18px 16px;
                border-radius: 8px;
            }
body.p-chcred .card-title {
                font-size: 16px;
                margin-bottom: 18px;
            }
body.p-chcred .form-group {
                margin-bottom: 14px;
            }
body.p-chcred .form-group label {
                font-size: 13px;
            }
body.p-chcred .form-group input[type="password"] {
                padding: 8px 12px;
                font-size: 13px;
                border-radius: 8px;
            }
body.p-chcred .btn-submit {
                padding: 10px;
                font-size: 14px;
                border-radius: 8px;
            }
body.p-chcred .message {
                font-size: 13px;
                padding: 10px 14px;
            }
body.p-chcred .back-link {
                font-size: 13px;
                margin-top: 16px;
            }
body.p-chcred .watermark {
                font-size: 10px;
                bottom: 8px;
                right: 10px;
            }}
body.p-chcred ::-webkit-scrollbar {
            width: 4px;
        }
body.p-chcred ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-chcred ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
body.p-chcred {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-chcred .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-chcred {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-chcred {
        padding-top: 60px;
    }}

/* ================= p-color  (color-namer/index.php) ================= */
body.p-color {
            --bg: #0f0f1b;
            --surface: #1a1a2e;
            --surface-2: #222240;
            --border: #2d2d50;
            --text: #d8d8e8;
            --text-secondary: #a0a0bb;
            --text-muted: #6b6b85;
            --accent: #5c9eff;
            --danger: #e0556a;
            --radius: 4px;
            --radius-sm: 4px;
            --transition: 0.2s ease;
        }
body.p-color {
            background: var(--bg);
            color: var(--text);
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }
body.p-color .container {
            width: 100%;
            max-width: 520px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 32px 28px 28px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
        }
body.p-color .header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 28px;
        }
body.p-color .header-icon {
            font-size: 1.5rem;
            color: var(--accent);
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(92, 158, 255, 0.1);
            border-radius: var(--radius-sm);
            flex-shrink: 0;
        }
body.p-color .header h1 {
            font-size: 1.3rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            color: #e8e8f4;
        }
body.p-color .preview-section {
            margin-bottom: 24px;
        }
body.p-color .preview-block {
            width: 100%;
            height: 100px;
            border-radius: var(--radius-sm);
            border: 2px solid var(--border);
            position: relative;
            overflow: hidden;
            transition: background-color var(--transition), border-color var(--transition);
            cursor: default;
        }
body.p-color .preview-block.transparent-bg {
            background-image:
                linear-gradient(45deg, #2a2a40 25%, transparent 25%),
                linear-gradient(-45deg, #2a2a40 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #2a2a40 75%),
                linear-gradient(-45deg, transparent 75%, #2a2a40 75%);
            background-size: 14px 14px;
            background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
            background-color: #1e1e34;
        }
body.p-color .preview-block-inner {
            position: absolute;
            inset: 0;
            border-radius: 4px;
            transition: background-color var(--transition);
        }
body.p-color .result-area {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 14px 16px;
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: 48px;
            transition: border-color var(--transition);
        }
body.p-color .result-icon {
            font-size: 1.1rem;
            color: var(--accent);
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(92, 158, 255, 0.08);
            border-radius: 50%;
        }
body.p-color .result-text {
            font-size: 1.15rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            color: #f0f0f8;
            word-break: break-all;
        }
body.p-color .result-text.placeholder {
            color: var(--text-muted);
            font-weight: 400;
            font-style: italic;
        }
body.p-color .input-group {
            display: flex;
            gap: 10px;
            align-items: flex-end;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
body.p-color .input-wrapper {
            flex: 1;
            min-width: 200px;
            position: relative;
        }
body.p-color .input-wrapper .input-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 0.9rem;
            pointer-events: none;
            z-index: 2;
            transition: color var(--transition);
        }
body.p-color .input-wrapper input[type="text"] {
            width: 100%;
            height: 42px;
            padding: 0 12px 0 36px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text);
            font-size: 0.95rem;
            font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', 'PingFang SC', monospace;
            letter-spacing: 0.02em;
            transition: all var(--transition);
            outline: none;
        }
body.p-color .input-wrapper input[type="text"]:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.1);
        }
body.p-color .input-wrapper input[type="text"]:focus~.input-icon,
body.p-color .input-wrapper input[type="text"]:focus+.input-icon {
            color: var(--accent);
        }
body.p-color .input-wrapper input[type="text"].error {
            border-color: var(--danger);
            box-shadow: 0 0 0 3px rgba(224, 85, 106, 0.08);
        }
body.p-color .format-switch {
            display: flex;
            gap: 4px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 3px;
            margin-bottom: 12px;
        }
body.p-color .format-btn {
            flex: 1;
            height: 32px;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            font-size: 0.8rem;
            font-weight: 600;
            font-family: inherit;
            border-radius: 4px;
            cursor: pointer;
            transition: all var(--transition);
            letter-spacing: 0.04em;
        }
body.p-color .format-btn:hover {
            color: var(--text);
        }
body.p-color .format-btn.active {
            background: var(--accent);
            color: #fff;
        }
body.p-color .hidden {
            display: none !important;
        }
body.p-color .mode-group {
            flex: 1;
            min-width: 200px;
        }
body.p-color .triple-group {
            display: flex;
            gap: 8px;
            align-items: flex-end;
            min-width: 0;
        }
body.p-color .triple-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }
body.p-color .triple-label {
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-muted);
            text-align: center;
            letter-spacing: 0.06em;
        }
body.p-color .triple-item input[type="number"] {
            width: 100%;
            height: 42px;
            padding: 0 6px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text);
            font-size: 0.95rem;
            font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
            text-align: center;
            transition: all var(--transition);
            outline: none;
            -moz-appearance: textfield;
            appearance: textfield;
        }
body.p-color .triple-item input[type="number"]::-webkit-outer-spin-button,
body.p-color .triple-item input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
body.p-color .triple-item input[type="number"]:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.1);
        }
body.p-color .triple-item input[type="number"].error {
            border-color: var(--danger);
            box-shadow: 0 0 0 3px rgba(224, 85, 106, 0.08);
        }
body.p-color .color-picker-btn {
            width: 42px;
            height: 42px;
            flex-shrink: 0;
            border-radius: var(--radius-sm);
            border: 2px solid var(--border);
            cursor: pointer;
            padding: 3px;
            background: var(--surface-2);
            transition: all var(--transition);
            position: relative;
            overflow: hidden;
        }
body.p-color .color-picker-btn:hover {
            border-color: #555;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
        }
body.p-color .color-picker-btn input[type="color"] {
            position: absolute;
            inset: -8px;
            cursor: pointer;
            opacity: 0;
            width: calc(100% + 16px);
            height: calc(100% + 16px);
            border: none;
            padding: 0;
        }
body.p-color .color-picker-btn .picker-preview {
            width: 100%;
            height: 100%;
            border-radius: 4px;
            pointer-events: none;
            transition: background-color var(--transition);
            background: conic-gradient(#ff0000,
                    #ffff00,
                    #00ff00,
                    #00ffff,
                    #0000ff,
                    #ff00ff,
                    #ff0000);
        }
body.p-color .color-picker-btn .picker-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 0.85rem;
            pointer-events: none;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
            z-index: 1;
        }
body.p-color .color-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 8px;
            margin-bottom: 4px;
        }
body.p-color .detail-item {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 10px 12px;
            text-align: center;
            transition: border-color var(--transition);
        }
body.p-color .detail-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--text-muted);
            margin-bottom: 4px;
            font-weight: 500;
        }
body.p-color .detail-value {
            font-size: 0.85rem;
            font-weight: 600;
            font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
            color: #d0d0e4;
            letter-spacing: 0.02em;
            word-break: break-all;
        }
body.p-color .hint {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 10px;
            text-align: center;
            letter-spacing: 0.02em;
        }
body.p-color .hint i {
            margin-right: 4px;
            font-size: 0.7rem;
        }
@media (max-width: 480px){body.p-color .container {
                padding: 20px 14px 18px;
                border-radius: var(--radius-sm);
            }
body.p-color .preview-block {
                height: 72px;
            }
body.p-color .result-text {
                font-size: 1rem;
            }
body.p-color .input-group {
                flex-direction: row;
                flex-wrap: nowrap;
            }
body.p-color .color-details {
                grid-template-columns: 1fr 1fr;
            }}

/* ================= p-cppop  (cppop/index.php) ================= */
body.p-cppop {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-cppop h1 {
            margin: 0.5em auto 0.8em;
            font-weight: 600;
            font-size: 2.2rem;
            letter-spacing: 4px;
            text-shadow: 0 0 8px rgba(255,255,255,0.3);
            border-bottom: 1px solid #333;
            padding-bottom: 0.3em;
            max-width: 900px;
        }
body.p-cppop .table-wrapper {
            max-width: 1300px;
            margin: 0 auto;
            overflow-x: auto;
            padding: 10px 0;
            border: #fff 2px;
            padding: 20px;
            border-radius: 8px;
            background: #0a0a0a;
            box-shadow: 0 10px 30px rgba(255,255,255,0.05);
        }
body.p-cppop table {
            margin: 0 auto;
            border-collapse: collapse;
            background-color: #000;
            min-width: 900px;
            width: 100%;
            border: 2px solid #444;
            letter-spacing: normal;
        }
body.p-cppop td,
body.p-cppop th {
            border: 1px solid #fff;
            padding: 14px 12px;
            vertical-align: middle;
            font-weight: 500;
        }
body.p-cppop th {
            background-color: #1a1a1a;
            font-weight: 700;
            font-size: 1.1em;
            color: #f0f0f0;
            letter-spacing: 2px;
            border-bottom: 3px solid #aaa;
        }
body.p-cppop td {
            background-color: #0c0c0c;
            transition: background 0.2s;
        }
body.p-cppop tr:hover td {
            background-color: #1f1f1f;
        }
body.p-cppop td:first-child {
            font-weight: 700;
            color: #ffb87c;
            font-size: 1.1em;
            width: 5%;
        }
body.p-cppop td:nth-child(2) {
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 1.1em;
            letter-spacing: 0.5px;
            text-align: left;
            white-space: nowrap;
        }
body.p-cppop td:nth-child(3) {
            font-weight: 500;
            color: #b0f0b0;
            white-space: nowrap;
        }
body.p-cppop td:nth-child(4) {
            color: #ccc;
            font-size: 0.95em;
            text-align: left;
            line-height: 1.5;
        }
body.p-cppop code {
            font-family: 'Consolas', 'Courier New', monospace;
            background-color: #222;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid #3a3a3a;
            color: #ffd966;
            font-size: 0.95em;
            white-space: nowrap;
        }
body.p-cppop td:nth-child(3) strong {
            color: #ff9999;
            text-decoration: underline wavy #ff6666 1px;
            font-weight: 800;
        }
body.p-cppop .spacer {
            height: 40px;
        }
body.p-cppop br + br,
body.p-cppop br {
            line-height: 1.8;
        }
@media (max-width: 700px){body.p-cppop { font-size: 1em; }
body.p-cppop h1 { font-size: 1.8rem; }}

/* ================= p-download  (download/index.php) ================= */
body.p-download {
            padding-top: 76px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-left: 20px;
            padding-right: 20px;
        }
body.p-download .page-container {
            max-width: 820px;
            width: 100%;
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 40px 32px;
            margin-top: 20px;
        }
body.p-download h1 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 24px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
body.p-download .download-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px 20px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            margin-bottom: 12px;
            transition: all 0.2s;
            text-decoration: none;
            color: #eee;
        }
body.p-download .download-item:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(4px);
        }
body.p-download .download-item i {
            font-size: 28px;
            color: #5c9eff;
            width: 40px;
            text-align: center;
        }
body.p-download .download-item .info {
            flex: 1;
        }
body.p-download .download-item .name {
            font-weight: 600;
            font-size: 16px;
        }
body.p-download .download-item .desc {
            font-size: 13px;
            color: #888;
        }
body.p-download .download-item .size {
            font-size: 12px;
            color: #666;
            background: rgba(255,255,255,0.05);
            padding: 2px 12px;
            border-radius: 8px;
        }

/* ================= p-forum  (forum/index.php) ================= */
body.p-forum {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: scroll;
    font-family: Inter, "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    font-feature-settings: "liga" 1, "calt" 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 20px;
    color: #eee;
    user-select: none;
    overflow-x: hidden;
    will-change: transform;
}
body.p-forum .fade-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }
@keyframes press{
            0% { box-shadow: 0 5px 0 #555; }
            100% { transform: translateY(5px); box-shadow: none; }
        }
body.p-forum .glass-effect {
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 20px 24px;
            transition: all 0.3s ease;
        }
body.p-forum .glass-effect:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-forum h1 {
            font-size: clamp(40px, 10vw, 80px);
            font-weight: 700;
            margin: 50px 0 24px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }
body.p-forum #addd {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #5c9eff;
    border-radius: 8px;
    padding: 12px 32px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0 24px;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #5c9eff;
}
body.p-forum #addd:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #5c9eff;
}
body.p-forum #addd:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #5c9eff;
}
body.p-forum .pagination {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            width: 100%;
            max-width: 900px;
            margin: 6px 0;
        }
body.p-forum .page-info {
            color: #888;
            font-size: 13px;
            text-align: center;
            line-height: 1.5;
        }
body.p-forum .page-info strong {
            color: #5c9eff;
        }
body.p-forum .page-nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 6px;
        }
body.p-forum .page-btn {
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            color: #ccc;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            min-width: 36px;
            text-align: center;
        }
body.p-forum .page-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateY(-1px);
        }
body.p-forum .page-btn.active {
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            border-color: transparent;
            color: white;
        }
body.p-forum .page-btn.disabled {
            opacity: 0.3;
            pointer-events: none;
        }
body.p-forum .page-ellipsis {
            color: #666;
            font-size: 13px;
            padding: 0 4px;
        }
body.p-forum hr {
            width: 80%;
            max-width: 400px;
            margin: 30px auto;
            border: none;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
        }
body.p-forum .post-card {
            width: 100%;
            max-width: 900px;
            margin: 12px 0;
            padding: 18px 20px;
            transition: all 0.2s;
        }
body.p-forum .post-card:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-forum .post-header {
            font-size: clamp(16px, 2.2vw, 22px);
            font-weight: 600;
            color: #eef;
            margin-bottom: 10px;
            word-break: break-word;
            line-height: 1.3;
        }
body.p-forum .post-header.blocked {
            color: #ff6b6b;
            font-weight: 400;
        }
body.p-forum .post-footer {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            margin-top: 8px;
        }
body.p-forum .post-meta {
            font-size: 13px;
            color: #888;
            margin: 2px 0;
        }
body.p-forum .post-meta i {
            margin-right: 6px;
            width: 16px;
            color: #5c9eff;
        }
body.p-forum .read-more-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 20px;
            background: rgba(92, 158, 255, 0.15);
            border: 1px solid rgba(92, 158, 255, 0.2);
            border-radius: 8px;
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            white-space: nowrap;
        }
body.p-forum .read-more-btn:hover {
            background: rgba(92, 158, 255, 0.25);
            transform: translateX(4px);
        }
body.p-forum .empty-state {
            text-align: center;
            padding: 50px 30px;
            color: #888;
        }
body.p-forum .empty-state i {
            font-size: 48px;
            color: #444;
            margin-bottom: 16px;
        }
body.p-forum .empty-state p {
            font-size: 16px;
        }
body.p-forum .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
body.p-forum code {
            font-family: "Consolas", "Courier New", monospace;
            background: rgba(255, 255, 255, 0.06);
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: #66e9df;
            font-size: 0.9em;
        }
@media (min-width: 768px){body.p-forum {
                padding: 20px 30px 30px;
            }
body.p-forum .post-card {
                padding: 24px 28px;
                margin: 14px 0;
            }
body.p-forum #addd {
                padding: 14px 40px;
                font-size: 18px;
            }
body.p-forum .page-btn {
                padding: 8px 18px;
                font-size: 14px;
            }}
@media (max-width: 768px){body.p-forum {
                padding: 12px 10px 16px;
            }
body.p-forum h1 {
                margin-top: 40px;
                margin-bottom: 18px;
            }
body.p-forum #addd {
                padding: 10px 24px;
                font-size: 14px;
                margin: 6px 0 16px;
            }
body.p-forum .post-card {
                padding: 14px 16px;
                margin: 8px 0;
                border-radius: 8px;
            }
body.p-forum .post-header {
                font-size: 15px;
            }
body.p-forum .post-meta {
                font-size: 12px;
            }
body.p-forum .read-more-btn {
                padding: 6px 16px;
                font-size: 12px;
            }
body.p-forum .page-btn {
                padding: 5px 10px;
                font-size: 12px;
                min-width: 30px;
            }
body.p-forum .page-info {
                font-size: 12px;
            }
body.p-forum hr {
                margin: 20px auto;
                width: 70%;
            }
body.p-forum .watermark {
                font-size: 10px;
                bottom: 8px;
                right: 10px;
            }}
@media (max-width: 480px){body.p-forum .post-card {
                padding: 12px 14px;
                margin: 6px 0;
                border-radius: 8px;
            }
body.p-forum .post-header {
                font-size: 14px;
            }
body.p-forum .post-footer {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
body.p-forum .read-more-btn {
                justify-content: center;
                padding: 8px 16px;
            }
body.p-forum .page-nav {
                gap: 4px;
            }
body.p-forum .page-btn {
                padding: 4px 8px;
                font-size: 11px;
                min-width: 26px;
            }
body.p-forum .page-ellipsis {
                font-size: 11px;
            }}
@media (hover: none) and (pointer: coarse){body.p-forum .page-btn:active,
body.p-forum .read-more-btn:active,
body.p-forum #addd:active {
                transform: scale(0.95);
            }
body.p-forum .page-btn:hover,
body.p-forum .read-more-btn:hover,
body.p-forum #addd:hover {
                transform: none;
            }}
body.p-forum ::-webkit-scrollbar {
            width: 6px;
        }
body.p-forum ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-forum ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
body.p-forum .hzj-inline {
    display: inline;
    height: auto;
    width: auto;
    max-height: 1.2em;
    max-width: 1.2em;
    vertical-align: text-bottom;
    margin: 0 1px;
    border-radius: 0;
    background: none;
    padding: 0;
    cursor: default;
    transition: none;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}
body.p-forum .hzj-inline:hover {
    transform: none;
    background: none;
}
body.p-forum .auto-link {
    color: #5c9eff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(92, 158, 255, 0.3);
    transition: all 0.2s;
    word-break: break-all;
}
body.p-forum .auto-link:hover {
    color: #5c9eff;
    border-bottom-color: #5c9eff;
    text-decoration: underline;
}
body.p-forum .auto-link:visited {
    color: #5c9eff;
}
body.p-forum .auto-link-image {
    display: inline-block;
    max-width: 100%;
    margin: 4px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}
body.p-forum .auto-link-image:hover {
    border-color: rgba(92, 158, 255, 0.3);
    transform: scale(1.01);
}
body.p-forum .auto-link-img {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    display: block;
    border-radius: 8px;
}
@media (max-width: 480px){body.p-forum .auto-link-img {
        max-height: 200px;
    }}
body.p-forum .post-image {
    margin: 12px 0 8px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}
body.p-forum .post-image-link {
    display: block;
    transition: all 0.2s;
}
body.p-forum .post-image-link:hover {
    opacity: 0.9;
}
body.p-forum .post-image-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}
@media (max-width: 480px){body.p-forum .post-image-img {
        max-height: 200px;
    }}
body.p-forum .post-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 0 6px;
}
body.p-forum .post-images-grid .post-image-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    position: relative;
}
body.p-forum .post-images-grid .post-image-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}
body.p-forum .post-images-grid .post-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.p-forum .post-images-grid:has(.post-image-link:nth-child(1):only-child) {
    grid-template-columns: 1fr;
    max-width: 60%;
}
body.p-forum .post-images-grid:has(.post-image-link:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}
body.p-forum .post-images-grid .more-indicator {
    position: relative;
}
body.p-forum .post-images-grid .more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(4px);
}
body.p-forum .post-detail-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
body.p-forum .post-detail-images-grid .post-image-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}
body.p-forum .post-detail-images-grid .post-image-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}
body.p-forum .post-detail-images-grid .post-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.p-forum .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) {
    grid-template-columns: 1fr;
    max-width: 70%;
}
body.p-forum .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) .post-image-link {
    aspect-ratio: auto;
    max-height: 500px;
}
body.p-forum .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) .post-detail-img {
    object-fit: contain;
}
@media (max-width: 768px){body.p-forum .post-images-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
body.p-forum .post-images-grid:has(.post-image-link:nth-child(1):only-child) {
        max-width: 80%;
    }
body.p-forum .post-detail-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
body.p-forum .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) {
        max-width: 80%;
    }
body.p-forum .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) .post-image-link {
        max-height: 300px;
    }}
@media (max-width: 480px){body.p-forum .post-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
body.p-forum .post-images-grid:has(.post-image-link:nth-child(1):only-child) {
        max-width: 90%;
    }
body.p-forum .post-images-grid .more-overlay {
        font-size: 20px;
    }
body.p-forum .post-detail-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 4px;
    }
body.p-forum .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) {
        max-width: 90%;
    }
body.p-forum .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) .post-image-link {
        max-height: 200px;
    }}
body.p-forum .post-content-preview {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin: 8px 0 4px;
    word-break: break-word;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}
body.p-forum .post-content-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(30, 30, 38, 0.8));
}
body.p-forum .post-preview-img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    display: block;
    margin: 6px 0;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.15);
}
@media (max-width: 480px){body.p-forum .post-preview-img {
        max-height: 100px;
    }
body.p-forum .post-content-preview {
        font-size: 13px;
        max-height: 80px;
    }}
body.p-forum .post-author-info {
    margin-bottom: 4px !important;
}
body.p-forum .post-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}
body.p-forum .post-author-link:hover {
    color: #5c9eff;
}
body.p-forum .post-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2a2a3a;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}
body.p-forum .post-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.p-forum {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-forum .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-forum {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-forum {
        padding-top: 60px;
    }}

/* ================= p-fpost  (forum/post_detail.php) ================= */
body.p-fpost {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: Inter, "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 20px;
    color: #eee;
    user-select: none;
    overflow-x: hidden;
}
body.p-fpost .fade-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }
body.p-fpost .glass-effect {
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 24px 28px;
            transition: all 0.3s ease;
            width: 100%;
            max-width: 800px;
        }
body.p-fpost .glass-effect:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-fpost .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 10px 24px;
            color: #5c9eff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            margin: 0 0 20px;
            align-self: flex-start;
            max-width: 800px;
            width: 100%;
        }
body.p-fpost .back-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            border-color: rgba(92, 158, 255, 0.3);
        }
body.p-fpost .back-btn i {
            font-size: 14px;
        }
body.p-fpost .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
body.p-fpost .post-card {
            margin-bottom: 24px;
        }
body.p-fpost .post-title {
            font-size: clamp(22px, 3vw, 32px);
            font-weight: 700;
            color: #eef;
            margin-bottom: 20px;
            line-height: 1.3;
            word-break: break-word;
        }
body.p-fpost .post-title.blocked {
            color: #ff6b6b;
            font-weight: 500;
        }
body.p-fpost .post-title i {
            margin-right: 10px;
        }
body.p-fpost .post-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            padding-bottom: 18px;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }
body.p-fpost .post-meta span {
            font-size: 14px;
            color: #888;
        }
body.p-fpost .post-meta i {
            margin-right: 8px;
            width: 16px;
            color: #5c9eff;
        }
body.p-fpost .post-content {
            font-size: 16px;
            line-height: 1.8;
            word-break: break-word;
            white-space: pre-wrap;
            user-select: text;
            padding: 16px 20px;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.2);
            min-height: 100px;
        }
body.p-fpost .post-content.blocked {
            background: rgba(255, 80, 80, 0.1);
            color: #ff8888;
        }
body.p-fpost .reply-section {
            margin-bottom: 24px;
        }
body.p-fpost .reply-section h3 {
            font-size: 18px;
            color: #5c9eff;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
body.p-fpost .reply-section h3 i {
            color: #5c9eff;
        }
body.p-fpost #message-container {
            margin-bottom: 12px;
        }
body.p-fpost .message {
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 14px;
        }
body.p-fpost .message.error {
            background: rgba(255, 80, 80, 0.15);
            border: 1px solid rgba(255, 80, 80, 0.2);
            color: #ff8888;
        }
body.p-fpost .message.success {
            background: rgba(81, 207, 102, 0.15);
            border: 1px solid rgba(81, 207, 102, 0.2);
            color: #51cf66;
        }
body.p-fpost textarea {
            width: 100%;
            padding: 14px 18px;
            background: rgba(20, 20, 25, 0.9);
            border: 1.5px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #f0f0f0;
            font-size: 15px;
            font-family: inherit;
            resize: vertical;
            outline: none;
            transition: all 0.2s;
            min-height: 120px;
            max-height: 300px;
            line-height: 1.7;
            margin-bottom: 16px;
            box-sizing: border-box;
        }
body.p-fpost textarea:focus {
            border-color: #5c9eff;
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.2);
        }
body.p-fpost textarea::placeholder {
            color: #555;
            font-size: 14px;
        }
body.p-fpost .reply-submit-row {
            display: flex;
            align-items: center;
            gap: 16px;
        }
body.p-fpost input[type="submit"] {
            padding: 12px 32px;
            background-color: #5c9eff;
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
body.p-fpost input[type="submit"]:hover {
            opacity: 0.85;
            transform: scale(0.98);
        }
body.p-fpost input[type="submit"]:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
body.p-fpost #loading {
            color: #5c9eff;
            font-size: 14px;
            display: none;
        }
body.p-fpost #loading i {
            margin-right: 8px;
        }
body.p-fpost .replies-section h2 {
            font-size: 18px;
            color: #5c9eff;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
body.p-fpost .replies-section h2 i {
            color: #5c9eff;
        }
body.p-fpost .reply-item {
            background: rgba(0, 0, 0, 0.2);
            border-left: 3px solid #5c9eff;
            margin: 12px 0;
            padding: 14px 18px;
            border-radius: 0 8px 8px 0;
            animation: fadeInUp 0.4s ease-out forwards;
        }
body.p-fpost .reply-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 10px;
            color: #888;
            font-size: 13px;
        }
body.p-fpost .reply-meta i {
            margin-right: 6px;
            width: 14px;
            color: #5c9eff;
        }
body.p-fpost .reply-content {
            color: #ddd;
            font-size: 15px;
            word-break: break-word;
            white-space: pre-wrap;
            line-height: 1.7;
            user-select: text;
        }
body.p-fpost .no-replies {
            color: #666;
            text-align: center;
            padding: 40px 20px;
            font-size: 15px;
        }
body.p-fpost .no-replies i {
            display: block;
            font-size: 48px;
            color: #333;
            margin-bottom: 16px;
        }
body.p-fpost code {
            font-family: "Consolas", "Courier New", monospace;
            background: rgba(255, 255, 255, 0.06);
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: #66e9df;
            font-size: 0.9em;
        }
@media (max-width: 768px){body.p-fpost {
                padding: 12px 10px 20px;
            }
body.p-fpost .glass-effect {
                padding: 18px 16px;
                border-radius: 8px;
            }
body.p-fpost .back-btn {
                padding: 8px 16px;
                font-size: 13px;
                margin-bottom: 14px;
            }
body.p-fpost .post-title {
                font-size: 18px;
            }
body.p-fpost .post-meta {
                gap: 12px;
                padding-bottom: 14px;
                margin-bottom: 16px;
            }
body.p-fpost .post-meta span {
                font-size: 12px;
            }
body.p-fpost .post-content {
                font-size: 14px;
                padding: 12px 14px;
            }
body.p-fpost textarea {
                font-size: 14px;
                min-height: 100px;
                padding: 12px 14px;
            }
body.p-fpost input[type="submit"] {
                padding: 10px 24px;
                font-size: 14px;
            }
body.p-fpost .reply-item {
                padding: 12px 14px;
                margin: 10px 0;
            }
body.p-fpost .reply-meta {
                font-size: 12px;
                gap: 12px;
            }
body.p-fpost .reply-content {
                font-size: 14px;
            }
body.p-fpost .reply-section h3,
body.p-fpost .replies-section h2 {
                font-size: 16px;
            }
body.p-fpost .watermark {
                font-size: 10px;
                bottom: 8px;
                right: 10px;
            }}
@media (max-width: 480px){body.p-fpost .glass-effect {
                padding: 14px 12px;
                border-radius: 8px;
            }
body.p-fpost .post-title {
                font-size: 16px;
            }
body.p-fpost .post-content {
                font-size: 13px;
                padding: 10px 12px;
            }
body.p-fpost textarea {
                font-size: 13px;
                min-height: 80px;
                padding: 10px 12px;
            }
body.p-fpost input[type="submit"] {
                padding: 8px 20px;
                font-size: 13px;
            }
body.p-fpost .reply-item {
                padding: 10px 12px;
            }
body.p-fpost .reply-content {
                font-size: 13px;
            }
body.p-fpost .reply-submit-row {
                flex-wrap: wrap;
            }}
body.p-fpost ::-webkit-scrollbar {
            width: 6px;
        }
body.p-fpost ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-fpost ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
body.p-fpost .hzj-inline {
    display: inline;
    height: auto;
    width: auto;
    max-height: 1.2em;
    max-width: 1.2em;
    vertical-align: text-bottom;
    margin: 0 1px;
    border-radius: 0;
    background: none;
    padding: 0;
    cursor: default;
    transition: none;
    fill: currentColor;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}
body.p-fpost .hzj-inline:hover {
    transform: none;
    background: none;
}
body.p-fpost .auto-link {
    color: #5c9eff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(92, 158, 255, 0.3);
    transition: all 0.2s;
    word-break: break-all;
}
body.p-fpost .auto-link:hover {
    color: #5c9eff;
    border-bottom-color: #5c9eff;
    text-decoration: underline;
}
body.p-fpost .auto-link:visited {
    color: #5c9eff;
}
body.p-fpost .auto-link-image {
    display: inline-block;
    max-width: 100%;
    margin: 4px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
body.p-fpost .auto-link-image:hover {
    border-color: rgba(92, 158, 255, 0.3);
    transform: scale(1.01);
}
body.p-fpost .auto-link-img {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    display: block;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
@media (max-width: 480px){body.p-fpost .auto-link-img {
        max-height: 200px;
    }}
body.p-fpost .post-detail-image {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}
body.p-fpost .post-detail-img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}
@media (max-width: 480px){body.p-fpost .post-detail-img {
        max-height: 300px;
    }}
body.p-fpost .reply-image-upload {
    margin-bottom: 12px;
}
body.p-fpost .reply-image-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(92, 158, 255, 0.1);
    border: 1px solid rgba(92, 158, 255, 0.2);
    border-radius: 8px;
    color: #5c9eff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
body.p-fpost .reply-image-label:hover {
    background: rgba(92, 158, 255, 0.2);
}
body.p-fpost .reply-image-label i {
    margin-right: 6px;
}
body.p-fpost .reply-image {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
}
body.p-fpost .reply-image-link {
    display: block;
}
body.p-fpost .reply-image-img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}
@media (max-width: 480px){body.p-fpost .reply-image-img {
        max-height: 150px;
    }}
body.p-fpost .post-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 0 6px;
}
body.p-fpost .post-images-grid .post-image-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    position: relative;
}
body.p-fpost .post-images-grid .post-image-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}
body.p-fpost .post-images-grid .post-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.p-fpost .post-images-grid:has(.post-image-link:nth-child(1):only-child) {
    grid-template-columns: 1fr;
    max-width: 60%;
}
body.p-fpost .post-images-grid:has(.post-image-link:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}
body.p-fpost .post-images-grid .more-indicator {
    position: relative;
}
body.p-fpost .post-images-grid .more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(4px);
}
body.p-fpost .post-detail-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
body.p-fpost .post-detail-images-grid .post-image-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}
body.p-fpost .post-detail-images-grid .post-image-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}
body.p-fpost .post-detail-images-grid .post-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.p-fpost .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) {
    grid-template-columns: 1fr;
    max-width: 70%;
}
body.p-fpost .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) .post-image-link {
    aspect-ratio: auto;
    max-height: 500px;
}
body.p-fpost .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) .post-detail-img {
    object-fit: contain;
}
@media (max-width: 768px){body.p-fpost .post-images-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
body.p-fpost .post-images-grid:has(.post-image-link:nth-child(1):only-child) {
        max-width: 80%;
    }
body.p-fpost .post-detail-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
body.p-fpost .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) {
        max-width: 80%;
    }
body.p-fpost .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) .post-image-link {
        max-height: 300px;
    }}
@media (max-width: 480px){body.p-fpost .post-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
body.p-fpost .post-images-grid:has(.post-image-link:nth-child(1):only-child) {
        max-width: 90%;
    }
body.p-fpost .post-images-grid .more-overlay {
        font-size: 20px;
    }
body.p-fpost .post-detail-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 4px;
    }
body.p-fpost .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) {
        max-width: 90%;
    }
body.p-fpost .post-detail-images-grid:has(.post-image-link:nth-child(1):only-child) .post-image-link {
        max-height: 200px;
    }}
body.p-fpost .reply-image {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    display: block;  /* 改为 block，不是链接 */
}
body.p-fpost .reply-image img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    cursor: pointer;
}
@media (max-width: 480px){body.p-fpost .reply-image img {
        max-height: 150px;
    }}
body.p-fpost .post-image-link,
body.p-fpost .reply-image {
    display: block;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    font-family: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
body.p-fpost .post-image-link:focus-visible,
body.p-fpost .reply-image:focus-visible {
    outline: 2px solid #5c9eff;
    outline-offset: 2px;
}
body.p-fpost .post-image-link img,
body.p-fpost .reply-image img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
body.p-fpost .markdown-body pre {
    background: rgba(0, 0, 0, 0.45);
    padding: 16px 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: pre;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
}
body.p-fpost .markdown-body pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 14px;
    white-space: pre;
    display: block;
}
body.p-fpost .markdown-body code {
    font-family: "Consolas", "Courier New", monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #66e9df;
    font-size: 0.9em;
}
body.p-fpost .markdown-body pre .lang-tag {
    display: none;
}
body.p-fpost .markdown-body p code,
body.p-fpost .markdown-body li code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #66e9df;
    font-size: 0.9em;
    white-space: nowrap;
}
body.p-fpost .markdown-body pre code {
    background: none;
    border: none;
    color: #e0e0e0;
    white-space: pre;
    font-size: 14px;
}
body.p-fpost .code-block-wrapper {
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
body.p-fpost .code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}
body.p-fpost .code-block-lang {
    color: #888;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
body.p-fpost .code-block-copy {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: inherit;
}
body.p-fpost .code-block-copy:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #aaa;
}
body.p-fpost .code-block-wrapper pre {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    background: none;
    border: none;
    border-radius: 0;
}
body.p-fpost .code-block-wrapper pre code {
    display: block;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #e0e0e0;
    background: none;
    padding: 0;
    border: none;
    white-space: pre;
}
@media (max-width: 480px){body.p-fpost .code-block-header {
        font-size: 11px;
        padding: 6px 12px;
    }
body.p-fpost .code-block-wrapper pre {
        padding: 12px 14px;
        font-size: 12px;
    }
body.p-fpost .code-block-wrapper pre code {
        font-size: 12px;
    }}
body.p-fpost .code-block-wrapper pre code {
    tab-size: 4;
    -moz-tab-size: 4;
    -o-tab-size: 4;
}
body.p-fpost .markdown-body img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    display: block;
    margin: 12px 0;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}
@media (max-width: 480px){body.p-fpost .markdown-body img {
        max-height: 300px;
    }}
body.p-fpost .turnstile-placeholder {
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0 16px;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
body.p-fpost .turnstile-placeholder .icon {
    font-size: 20px;
    color: #5c9eff;
}
body.p-fpost .turnstile-placeholder .info {
    font-size: 14px;
    color: #aaa;
}
body.p-fpost .turnstile-placeholder .info strong {
    color: #5c9eff;
}
body.p-fpost .turnstile-placeholder .timer {
    font-size: 18px;
    font-weight: 700;
    color: #4cd964;
    min-width: 30px;
    display: inline-block;
}
body.p-fpost .turnstile-placeholder .status-done {
    color: #4cd964;
    font-weight: 600;
}
body.p-fpost .turnstile-placeholder .status-done i {
    margin-right: 6px;
}
body.p-fpost .post-author-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
body.p-fpost .post-author-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}
body.p-fpost .post-author-link:hover {
    color: #5c9eff;
}
body.p-fpost .post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2a3a;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}
body.p-fpost .post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.p-fpost .post-author-name {
    font-weight: 600;
}
body.p-fpost .post-meta-time {
    font-size: 13px;
    color: #888;
}
body.p-fpost .post-meta-time i {
    margin-right: 6px;
    color: #5c9eff;
}
body.p-fpost a {
    color: #5c9eff;
    text-decoration: none;
    transition: all 0.2s ease;
}
body.p-fpost a:hover {
    color: #5c9eff;
    text-decoration: underline;
}
body.p-fpost a:visited {
    color: #5c9eff;
}
body.p-fpost a:active {
    color: #5c9eff;
}
body.p-fpost .markdown-body a {
    color: #5c9eff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(92, 158, 255, 0.3);
    transition: all 0.2s ease;
}
body.p-fpost .markdown-body a:hover {
    color: #5c9eff;
    border-bottom-color: #5c9eff;
    text-decoration: underline;
}
body.p-fpost .markdown-body a:visited {
    color: #5c9eff;
}
body.p-fpost {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}

/* ================= p-fform  (forum/form/index.php) ================= */
body.p-fform {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: Inter, "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    user-select: none;
    padding: 20px;
}
body.p-fform h1 {
            font-size: clamp(48px, 10vw, 96px);
            font-weight: 700;
            margin: 40px 0 32px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }
body.p-fform .glass-effect {
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 32px 28px;
            width: 100%;
            max-width: 700px;
            transition: all 0.3s ease;
        }
body.p-fform .glass-effect:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-fform form {
            width: 100%;
        }
body.p-fform label {
            display: block;
            font-size: 15px;
            font-weight: 500;
            color: #5c9eff;
            margin-bottom: 8px;
        }
body.p-fform label i {
            margin-right: 8px;
            color: #5c9eff;
        }
body.p-fform input[type="text"] {
            width: 100%;
            padding: 12px 16px;
            margin-bottom: 24px;
            background: rgba(20, 20, 25, 0.9);
            border: 1.5px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #f0f0f0;
            font-size: 16px;
            outline: none;
            transition: all 0.2s;
            box-sizing: border-box;
        }
body.p-fform input[type="text"]:focus {
            border-color: #5c9eff;
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.2);
        }
body.p-fform input[type="text"]::placeholder {
            color: #555;
            font-size: 14px;
        }
body.p-fform textarea {
            width: 100%;
            height: 300px;
            padding: 14px 16px;
            margin-bottom: 24px;
            background: rgba(20, 20, 25, 0.9);
            border: 1.5px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #f0f0f0;
            font-size: 15px;
            font-family: inherit;
            resize: vertical;
            outline: none;
            transition: all 0.2s;
            box-sizing: border-box;
            line-height: 1.7;
            min-height: 200px;
            max-height: 500px;
        }
body.p-fform textarea:focus {
            border-color: #5c9eff;
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.2);
        }
body.p-fform textarea::placeholder {
            color: #555;
            font-size: 14px;
        }
body.p-fform input[type="submit"] {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 17px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            box-sizing: border-box;
        }
body.p-fform input[type="submit"]:hover {
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            transform: scale(0.98);
        }
body.p-fform input[type="submit"]:active {
            transform: scale(0.96);
        }
body.p-fform input[type="submit"] i {
            margin-right: 8px;
        }
body.p-fform .tips-section {
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
body.p-fform .tips-header {
            font-size: 14px;
            font-weight: 500;
            color: #5c9eff;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-fform .tips-header i {
            color: #5c9eff;
        }
body.p-fform .tips-content p {
            font-size: 14px;
            color: #aaa;
            line-height: 1.8;
            margin: 2px 0;
        }
body.p-fform .tips-content .tips-example {
            font-size: 13px;
            color: #888;
            margin-top: 2px;
        }
body.p-fform .tips-code {
            font-family: "Consolas", "Courier New", monospace;
            background: rgba(92, 158, 255, 0.1);
            padding: 1px 8px;
            border-radius: 4px;
            color: #5c9eff;
            font-size: 0.9em;
            border: 1px solid rgba(92, 158, 255, 0.1);
        }
body.p-fform .hzj-preview {
            display: inline-block;
            height: 1em;
            width: auto;
            vertical-align: text-bottom;
            margin: 0 2px;
            border-radius: 0;
            background: none;
            padding: 0;
        }
body.p-fform .corner-id {
            position: fixed;
            bottom: 16px;
            right: 16px;
            z-index: 99;
            color: #aaa;
            font-size: 12px;
            background: rgba(0, 0, 0, 0.5);
            padding: 6px 12px;
            border-radius: 8px;
            backdrop-filter: blur(4px);
            pointer-events: none;
        }
body.p-fform hr {
            width: 80%;
            max-width: 400px;
            margin: 60px auto 30px;
            border: none;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        }
body.p-fform #copyright {
            margin: 10px 0 30px;
            width: 100%;
            display: flex;
            justify-content: center;
        }
body.p-fform .text-small {
            font-size: 11px;
            color: #777;
            text-align: center;
            width: 90%;
            max-width: 500px;
            line-height: 1.8;
        }
body.p-fform h1,
body.p-fform .glass-effect,
body.p-fform hr,
body.p-fform #copyright {
            animation: fadeInUp 0.6s ease-out forwards;
        }
@media (max-width: 768px){body.p-fform {
                padding: 12px;
            }
body.p-fform h1 {
                margin: 20px 0 24px;
            }
body.p-fform .glass-effect {
                padding: 24px 18px;
                border-radius: 8px;
            }
body.p-fform input[type="text"] {
                padding: 10px 14px;
                font-size: 15px;
            }
body.p-fform input[type="submit"] {
                padding: 12px;
                font-size: 16px;
            }
body.p-fform label {
                font-size: 14px;
            }
body.p-fform .tips-content p {
                font-size: 13px;
            }
body.p-fform .tips-content .tips-example {
                font-size: 12px;
            }}
@media (max-width: 480px){body.p-fform {
                padding: 8px;
            }
body.p-fform .glass-effect {
                padding: 18px 14px;
                border-radius: 8px;
            }
body.p-fform h1 {
                font-size: 36px;
                margin: 16px 0 20px;
            }
body.p-fform input[type="text"] {
                padding: 8px 12px;
                font-size: 14px;
                margin-bottom: 16px;
            }
body.p-fform input[type="submit"] {
                padding: 10px;
                font-size: 14px;
            }
body.p-fform label {
                font-size: 13px;
                margin-bottom: 6px;
            }
body.p-fform .text-small {
                font-size: 10px;
            }
body.p-fform .tips-content p {
                font-size: 12px;
            }
body.p-fform .tips-content .tips-example {
                font-size: 11px;
            }
body.p-fform .tips-code {
                font-size: 0.8em;
                padding: 1px 5px;
            }}
body.p-fform ::-webkit-scrollbar {
            width: 6px;
        }
body.p-fform ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
        }
body.p-fform ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }
body.p-fform #fh {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-fform #fh:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
body.p-fform #fh i {
            font-size: 13px;
        }
body.p-fform .EasyMDEContainer .CodeMirror {
            background: rgba(20, 20, 25, 0.9) !important;
            color: #f0f0f0 !important;
            border-radius: 8px 8px 0 0 !important;
            border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
            border-bottom: none !important;
            min-height: 200px !important;
        }
body.p-fform .EasyMDEContainer .editor-toolbar {
            background: rgba(20, 20, 25, 0.9) !important;
            border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
            border-bottom: none !important;
            border-radius: 8px 8px 0 0 !important;
        }
body.p-fform .EasyMDEContainer .editor-toolbar button {
            color: #aaa !important;
        }
body.p-fform .EasyMDEContainer .editor-toolbar button:hover {
            background: rgba(255, 255, 255, 0.1) !important;
            color: #eee !important;
        }
body.p-fform .EasyMDEContainer .editor-toolbar button.active {
            background: rgba(92, 158, 255, 0.2) !important;
            color: #5c9eff !important;
        }
body.p-fform .EasyMDEContainer .CodeMirror-cursor {
            border-color: #5c9eff !important;
        }
body.p-fform .EasyMDEContainer .CodeMirror-selected {
            background: rgba(92, 158, 255, 0.2) !important;
        }
body.p-fform .EasyMDEContainer .editor-preview {
            background: rgba(10, 14, 22, 0.95) !important;
            color: #ddd !important;
            border-radius: 0 0 8px 8px !important;
            border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
            border-top: none !important;
        }
body.p-fform .EasyMDEContainer .editor-preview-side {
            background: rgba(10, 14, 22, 0.95) !important;
            color: #ddd !important;
            border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
            border-left: none !important;
        }
body.p-fform .EasyMDEContainer .CodeMirror-scroll {
            min-height: 200px !important;
        }
body.p-fform .EasyMDEContainer .editor-statusbar {
            background: rgba(20, 20, 25, 0.9) !important;
            border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
            border-top: none !important;
            border-radius: 0 0 8px 8px !important;
            color: #666 !important;
        }
body.p-fform .EasyMDEContainer .editor-preview pre,
body.p-fform .EasyMDEContainer .editor-preview-side pre {
            background: rgba(0, 0, 0, 0.4) !important;
            border-radius: 8px !important;
            padding: 12px !important;
        }
body.p-fform .EasyMDEContainer .editor-preview code,
body.p-fform .EasyMDEContainer .editor-preview-side code {
            background: rgba(255, 255, 255, 0.06) !important;
            color: #66e9df !important;
        }
body.p-fform .turnstile-placeholder {
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0 16px;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
body.p-fform .turnstile-placeholder .icon {
    font-size: 20px;
    color: #5c9eff;
}
body.p-fform .turnstile-placeholder .info {
    font-size: 14px;
    color: #aaa;
}
body.p-fform .turnstile-placeholder .info strong {
    color: #5c9eff;
}
body.p-fform .turnstile-placeholder .timer {
    font-size: 18px;
    font-weight: 700;
    color: #4cd964;
    min-width: 30px;
    display: inline-block;
}
body.p-fform .turnstile-placeholder .status-done {
    color: #4cd964;
    font-weight: 600;
}
body.p-fform .turnstile-placeholder .status-done i {
    margin-right: 6px;
}
body.p-fform {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-fform .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-fform {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-fform {
        padding-top: 60px;
    }}

/* ================= p-fsave  (forum/save/index.php) ================= */
body.p-fsave {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #eee;
    padding: 20px;
}
body.p-fsave .fade-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }
body.p-fsave .card {
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 48px 40px;
            max-width: 520px;
            width: 100%;
            text-align: center;
            transition: all 0.3s ease;
        }
body.p-fsave .card:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-fsave .status-icon {
            font-size: 72px;
            margin-bottom: 20px;
            display: block;
        }
body.p-fsave .status-icon.success {
            color: #4cd964;
        }
body.p-fsave .status-icon.error {
            color: #ff6b6b;
        }
body.p-fsave .status-title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 12px;
        }
body.p-fsave .status-title.success {
            background: linear-gradient(135deg, #4cd964, #34a853);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
body.p-fsave .status-title.error {
            color: #ff6b6b;
        }
body.p-fsave .status-desc {
            font-size: 15px;
            color: #aaa;
            line-height: 1.6;
            margin-bottom: 28px;
        }
body.p-fsave .status-desc strong {
            color: #eef;
        }
body.p-fsave .btn-group {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }
body.p-fsave .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 28px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s;
            border: none;
            cursor: pointer;
        }
body.p-fsave .btn-primary {
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            color: white;
        }
body.p-fsave .btn-primary:hover {
            opacity: 0.85;
            transform: scale(0.97);
        }
body.p-fsave .btn-secondary {
            background: rgba(255, 255, 255, 0.06);
            color: #aaa;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
body.p-fsave .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: scale(0.97);
        }
body.p-fsave .btn-success {
            background: linear-gradient(135deg, #2d8e46, #1a6b30);
            color: white;
        }
body.p-fsave .btn-success:hover {
            opacity: 0.85;
            transform: scale(0.97);
        }
body.p-fsave .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
@media (max-width: 768px){body.p-fsave { padding: 16px; }
body.p-fsave .card { padding: 32px 24px; border-radius: 8px; }
body.p-fsave .status-icon { font-size: 56px; }
body.p-fsave .status-title { font-size: 24px; }
body.p-fsave .status-desc { font-size: 14px; }
body.p-fsave .btn { padding: 10px 22px; font-size: 14px; }}
@media (max-width: 480px){body.p-fsave { padding: 12px; }
body.p-fsave .card { padding: 24px 18px; border-radius: 8px; }
body.p-fsave .status-icon { font-size: 48px; margin-bottom: 14px; }
body.p-fsave .status-title { font-size: 20px; }
body.p-fsave .status-desc { font-size: 13px; margin-bottom: 20px; }
body.p-fsave .btn { padding: 10px 18px; font-size: 13px; width: 100%; justify-content: center; }
body.p-fsave .btn-group { flex-direction: column; gap: 8px; }
body.p-fsave .watermark { font-size: 10px; bottom: 8px; right: 10px; }}
body.p-fsave ::-webkit-scrollbar {
            width: 6px;
        }
body.p-fsave ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-fsave ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
body.p-fsave {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-fsave .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-fsave {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-fsave {
        padding-top: 60px;
    }}

/* ================= p-fruit  (fruit/index.php) ================= */
body.p-fruit #fh { position: fixed; top: 16px; left: 16px; z-index: 100; background: rgba(20,20,28,0.85); backdrop-filter: blur(10px); padding: 10px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); color: #5c9eff; text-decoration: none; font-size: 13px; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
body.p-fruit #fh:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
body.p-fruit #fh i { font-size: 13px; }
body.p-fruit { font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; align-items: center; background: linear-gradient(135deg, #0f0f10 0%, #1a1a1f 100%); color: #eee; padding: 16px 12px 30px; overflow-x: hidden; }
body.p-fruit {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-fruit .fade-up { animation: fadeInUp 0.6s ease-out forwards; }
body.p-fruit .header { text-align: center; margin-bottom: 20px; width: 100%; max-width: 900px; }
body.p-fruit h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 700; background: linear-gradient(135deg, #fff, #5c9eff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 4px; }
body.p-fruit .subtitle { font-size: 14px; color: #888; }
body.p-fruit .subtitle i { color: #5c9eff; margin-right: 6px; }
body.p-fruit .game-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; width: 100%; max-width: 1100px; }
body.p-fruit .game-board { position: relative; border-radius: 8px; overflow: hidden; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
body.p-fruit #gameCanvas { display: block; background: linear-gradient(to bottom, #121a2a, #1a1a2e); }
body.p-fruit .game-info { flex: 1; min-width: 260px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
body.p-fruit .info-card { background: rgba(30,30,38,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 18px 20px; transition: all 0.3s ease; }
body.p-fruit .info-card:hover { border-color: rgba(255,255,255,0.15); }
body.p-fruit .info-card .label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
body.p-fruit .info-card .label i { color: #5c9eff; }
body.p-fruit .info-card .value { font-size: 32px; font-weight: 700; color: #eef; }
body.p-fruit .info-card .value.highlight { background: linear-gradient(135deg, #4cd964, #34a853); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
body.p-fruit .next-fruit-preview { display: flex; flex-direction: column; align-items: center; }
body.p-fruit #nextFruitCanvas { background: rgba(0,0,0,0.2); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); margin-top: 4px; }
body.p-fruit .instructions ul { list-style: none; padding: 0; margin: 6px 0 0; }
body.p-fruit .instructions ul li { padding: 4px 0 4px 22px; position: relative; font-size: 13px; color: #aaa; line-height: 1.5; }
body.p-fruit .instructions ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; background: #5c9eff; border-radius: 50%; opacity: 0.5; }
body.p-fruit .instructions ul li strong { color: #ddd; }
body.p-fruit .btn-group { display: flex; flex-wrap: wrap; gap: 10px; }
body.p-fruit .btn { flex: 1; min-width: 80px; padding: 12px 16px; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; }
body.p-fruit .btn:active { transform: scale(0.95); }
body.p-fruit .btn-primary { background: linear-gradient(135deg, #5c9eff, #5c9eff); color: white; }
body.p-fruit .btn-primary:hover { opacity: 0.85; transform: scale(0.97); }
body.p-fruit .btn-secondary { background: rgba(255,255,255,0.06); color: #aaa; border: 1px solid rgba(255,255,255,0.08); }
body.p-fruit .btn-secondary:hover { background: rgba(255,255,255,0.12); transform: scale(0.97); }
body.p-fruit .btn-warning { background: linear-gradient(135deg, #f39c12, #e67e22); color: white; }
body.p-fruit .btn-warning:hover { opacity: 0.85; transform: scale(0.97); }
body.p-fruit .btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; }
body.p-fruit .btn-danger:hover { opacity: 0.85; transform: scale(0.97); }
body.p-fruit .btn-success { background: linear-gradient(135deg, #2d8e46, #1a6b30); color: white; }
body.p-fruit .btn-success:hover { opacity: 0.85; transform: scale(0.97); }
body.p-fruit .game-over { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); flex-direction: column; justify-content: center; align-items: center; border-radius: 8px; z-index: 10; }
body.p-fruit .game-over .icon { font-size: 64px; margin-bottom: 12px; }
body.p-fruit .game-over h2 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
body.p-fruit .game-over .final-score { font-size: 20px; color: #aaa; margin-bottom: 24px; }
body.p-fruit .game-over .final-score strong { color: #5c9eff; font-size: 28px; }
body.p-fruit .fruit-sequence { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; width: 100%; max-width: 900px; padding: 16px 20px; background: rgba(30,30,38,0.5); backdrop-filter: blur(8px); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
body.p-fruit .fruit-demo { width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 600; font-size: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); flex-shrink: 0; color: white; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
body.p-fruit .fruit-arrow { color: #444; font-size: 14px; flex-shrink: 0; }
body.p-fruit .watermark { position: fixed; bottom: 12px; right: 14px; z-index: 99; color: #555; font-size: 11px; pointer-events: none; font-family: monospace; }
body.p-fruit .footer-text { margin-top: 20px; font-size: 13px; color: #444; }
body.p-fruit .footer-text i { color: #5c9eff; }
@media (max-width: 768px){body.p-fruit { padding: 12px 8px 20px; }
body.p-fruit .game-container { flex-direction: column; align-items: center; gap: 16px; }
body.p-fruit .game-info { max-width: 100%; width: 100%; flex-direction: row; flex-wrap: wrap; }
body.p-fruit .info-card { flex: 1; min-width: 140px; padding: 14px 16px; }
body.p-fruit .info-card .value { font-size: 24px; }
body.p-fruit #gameCanvas { width: 100%; height: auto; max-width: 600px; }
body.p-fruit .game-board { width: 100%; max-width: 600px; }
body.p-fruit .fruit-sequence { gap: 4px; padding: 10px 12px; }
body.p-fruit .fruit-demo { width: 32px; height: 32px; font-size: 8px; }
body.p-fruit .fruit-arrow { font-size: 10px; }
body.p-fruit .game-over h2 { font-size: 28px; }
body.p-fruit .game-over .icon { font-size: 48px; }}
@media (max-width: 480px){body.p-fruit { padding: 8px 4px 16px; }
body.p-fruit .game-info { flex-direction: column; gap: 10px; }
body.p-fruit .info-card { min-width: unset; padding: 12px 14px; border-radius: 8px; }
body.p-fruit .info-card .value { font-size: 22px; }
body.p-fruit .btn { padding: 10px 12px; font-size: 12px; min-width: 60px; }
body.p-fruit .fruit-sequence { gap: 3px; padding: 8px 10px; border-radius: 8px; }
body.p-fruit .fruit-demo { width: 26px; height: 26px; font-size: 7px; }
body.p-fruit .fruit-arrow { font-size: 8px; }
body.p-fruit .game-over h2 { font-size: 22px; }
body.p-fruit .game-over .icon { font-size: 36px; }
body.p-fruit .game-over .final-score { font-size: 16px; }
body.p-fruit .watermark { font-size: 10px; bottom: 6px; right: 8px; }}
body.p-fruit ::-webkit-scrollbar { width: 4px; }
body.p-fruit ::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
body.p-fruit ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
body.p-fruit {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-fruit .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-fruit {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-fruit {
        padding-top: 60px;
    }}

/* ================= p-hackchat  (hack-chat/index.php) ================= */
body.p-hackchat #fh {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-hackchat #fh:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
body.p-hackchat #fh i {
            font-size: 13px;
        }
body.p-hackchat {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-hackchat h1 {
            font-size: clamp(48px, 12vw, 100px);
            font-weight: 700;
            margin: 40px 0 60px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }
body.p-hackchat #wrapper {
            width: 100%;
            display: flex;
            justify-content: center;
        }
body.p-hackchat form {
            width: 100%;
            max-width: 500px;
        }
body.p-hackchat fieldset {
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            padding: 32px 28px;
            background: rgba(30, 30, 38, 0.6);
            backdrop-filter: blur(10px);
        }
body.p-hackchat legend {
            font-size: 22px;
            font-weight: 500;
            color: #5c9eff;
            padding: 0 12px;
            width: auto;
            border: none;
        }
body.p-hackchat #t {
            width: 100%;
            padding: 14px 18px;
            margin: 16px 0 24px;
            background: rgba(20, 20, 25, 0.9);
            border: 1.5px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            color: #f0f0f0;
            font-size: 16px;
            outline: none;
            transition: all 0.2s;
            box-sizing: border-box;
        }
body.p-hackchat #t:focus {
            border-color: #5c9eff;
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.2);
        }
body.p-hackchat #t::placeholder {
            color: #888;
            font-size: 14px;
        }
body.p-hackchat #s {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 18px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
body.p-hackchat #s:hover {
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            transform: scale(0.98);
        }
body.p-hackchat hr {
            width: 80%;
            max-width: 400px;
            margin: 80px auto 40px;
            border: none;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        }
body.p-hackchat #copyright {
            margin: 20px 0 40px;
            width: 100%;
            display: flex;
            justify-content: center;
        }
body.p-hackchat .text-small {
            font-size: 11px;
            color: #777;
            text-align: center;
            width: 90%;
            max-width: 500px;
            line-height: 1.6;
        }
body.p-hackchat h1,
body.p-hackchat #wrapper,
body.p-hackchat hr,
body.p-hackchat #copyright {
            animation: fadeInUp 0.6s ease-out forwards;
        }
@media (max-width: 768px){body.p-hackchat {
                padding: 16px;
                justify-content: flex-start;
            }
body.p-hackchat h1 {
                margin: 30px 0 40px;
            }
body.p-hackchat fieldset {
                padding: 24px 20px;
            }
body.p-hackchat legend {
                font-size: 20px;
            }
body.p-hackchat #t {
                padding: 12px 16px;
                font-size: 15px;
            }
body.p-hackchat #s {
                padding: 12px;
                font-size: 16px;
            }
body.p-hackchat hr {
                margin: 50px auto 30px;
            }}
@media (max-width: 480px){body.p-hackchat fieldset {
                padding: 20px 16px;
            }
body.p-hackchat legend {
                font-size: 18px;
            }}
body.p-hackchat {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-hackchat .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-hackchat {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-hackchat {
        padding-top: 60px;
    }}

/* ================= p-hash  (hash-converter/index.php) ================= */
body.p-hash {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-hash .fade-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }
body.p-hash h1 {
            font-size: clamp(36px, 6vw, 56px);
            font-weight: 700;
            margin-bottom: 28px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }
body.p-hash .container {
            width: 100%;
            max-width: 820px;
        }
body.p-hash .card {
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 28px 32px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }
body.p-hash .card:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-hash .card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 18px;
            font-weight: 600;
            color: #5c9eff;
            margin-bottom: 18px;
        }
body.p-hash .card-title i {
            color: #5c9eff;
        }
body.p-hash .form-group {
            margin-bottom: 18px;
        }
body.p-hash .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #aaa;
            margin-bottom: 6px;
        }
body.p-hash .form-group label i {
            margin-right: 8px;
            color: #5c9eff;
            width: 18px;
        }
body.p-hash .form-group textarea,
body.p-hash .form-group input[type="text"] {
            width: 100%;
            padding: 12px 16px;
            background: rgba(20, 20, 25, 0.9);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            color: #f0f0f0;
            font-size: 15px;
            font-family: inherit;
            outline: none;
            transition: all 0.25s;
            resize: vertical;
        }
body.p-hash .form-group textarea {
            min-height: 100px;
            max-height: 200px;
            line-height: 1.6;
        }
body.p-hash .form-group textarea:focus,
body.p-hash .form-group input[type="text"]:focus {
            border-color: rgba(92, 158, 255, 0.5);
            box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.1);
            background: rgba(30, 40, 55, 0.9);
        }
body.p-hash .form-group textarea::placeholder,
body.p-hash .form-group input[type="text"]::placeholder {
            color: #555;
            font-size: 14px;
        }
body.p-hash .btn-submit {
            padding: 12px 32px;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
body.p-hash .btn-submit:hover {
            opacity: 0.85;
            transform: scale(0.98);
        }
body.p-hash .btn-submit:active {
            transform: scale(0.96);
        }
body.p-hash .result {
            margin-top: 4px;
        }
body.p-hash .result-header {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            font-weight: 600;
            color: #5c9eff;
            margin-bottom: 14px;
        }
body.p-hash .result-header i {
            color: #4cd964;
        }
body.p-hash .result-info {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 14px 18px;
            margin-bottom: 16px;
            font-size: 14px;
            color: #aaa;
            line-height: 1.6;
        }
body.p-hash .result-info strong {
            color: #eef;
        }
body.p-hash .result-info .highlight {
            color: #5c9eff;
            font-family: monospace;
        }
body.p-hash .hash-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
body.p-hash .hash-item {
            background: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            padding: 14px 16px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.2s;
        }
body.p-hash .hash-item:hover {
            border-color: rgba(92, 158, 255, 0.2);
        }
body.p-hash .hash-name {
            font-size: 12px;
            font-weight: 600;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }
body.p-hash .hash-name i {
            color: #5c9eff;
            font-size: 12px;
        }
body.p-hash .hash-value {
            font-family: "Consolas", "Courier New", monospace;
            font-size: 13px;
            color: #5c9eff;
            word-break: break-all;
            line-height: 1.5;
            background: rgba(0, 0, 0, 0.2);
            padding: 4px 10px;
            border-radius: 8px;
            display: block;
        }
body.p-hash .hash-desc {
            font-size: 11px;
            color: #666;
            margin-top: 4px;
        }
body.p-hash .error-message {
            background: rgba(255, 80, 80, 0.12);
            border: 1px solid rgba(255, 80, 80, 0.2);
            border-radius: 8px;
            padding: 12px 16px;
            color: #ff8888;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 4px;
        }
body.p-hash .error-message i {
            color: #ff6b6b;
        }
body.p-hash .info-card ul {
            list-style: none;
            padding: 0;
            margin: 10px 0 0;
        }
body.p-hash .info-card ul li {
            padding: 6px 0 6px 28px;
            position: relative;
            font-size: 14px;
            color: #aaa;
            line-height: 1.5;
        }
body.p-hash .info-card ul li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 13px;
            width: 6px;
            height: 6px;
            background: #5c9eff;
            border-radius: 50%;
            opacity: 0.5;
        }
body.p-hash .info-card ul li strong {
            color: #ddd;
        }
body.p-hash .info-card .warning {
            margin-top: 12px;
            padding: 12px 16px;
            background: rgba(255, 170, 0, 0.08);
            border: 1px solid rgba(255, 170, 0, 0.15);
            border-radius: 8px;
            font-size: 13px;
            color: #ffb74d;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
body.p-hash .info-card .warning i {
            color: #ffb74d;
            margin-top: 2px;
        }
body.p-hash code {
            font-family: "Consolas", "Courier New", monospace;
            background: rgba(255, 255, 255, 0.06);
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: #66e9df;
            font-size: 0.9em;
        }
body.p-hash .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
@media (max-width: 768px){body.p-hash {
                padding: 16px 12px;
            }
body.p-hash .card {
                padding: 20px 18px;
                border-radius: 8px;
            }
body.p-hash .card-title {
                font-size: 16px;
            }
body.p-hash .form-group textarea,
body.p-hash .form-group input[type="text"] {
                padding: 10px 14px;
                font-size: 14px;
                border-radius: 8px;
            }
body.p-hash .form-group textarea {
                min-height: 80px;
            }
body.p-hash .btn-submit {
                padding: 10px 24px;
                font-size: 14px;
                width: 100%;
                justify-content: center;
            }
body.p-hash .hash-grid {
                grid-template-columns: 1fr;
            }
body.p-hash .result-info {
                font-size: 13px;
                padding: 12px 14px;
            }
body.p-hash .hash-value {
                font-size: 12px;
            }
body.p-hash .info-card ul li {
                font-size: 13px;
            }}
@media (max-width: 480px){body.p-hash {
                padding: 12px 8px;
            }
body.p-hash h1 {
                font-size: 28px;
                margin-bottom: 18px;
            }
body.p-hash .card {
                padding: 16px 14px;
                border-radius: 8px;
                margin-bottom: 14px;
            }
body.p-hash .card-title {
                font-size: 14px;
                margin-bottom: 14px;
            }
body.p-hash .form-group {
                margin-bottom: 14px;
            }
body.p-hash .form-group label {
                font-size: 13px;
            }
body.p-hash .form-group textarea,
body.p-hash .form-group input[type="text"] {
                padding: 8px 12px;
                font-size: 13px;
            }
body.p-hash .form-group textarea {
                min-height: 70px;
                max-height: 150px;
            }
body.p-hash .btn-submit {
                padding: 10px 18px;
                font-size: 13px;
            }
body.p-hash .result-header {
                font-size: 14px;
            }
body.p-hash .result-info {
                font-size: 12px;
                padding: 10px 12px;
            }
body.p-hash .hash-item {
                padding: 10px 12px;
            }
body.p-hash .hash-name {
                font-size: 11px;
            }
body.p-hash .hash-value {
                font-size: 11px;
                padding: 3px 8px;
            }
body.p-hash .info-card ul li {
                font-size: 12px;
                padding: 4px 0 4px 24px;
            }
body.p-hash .info-card ul li::before {
                width: 5px;
                height: 5px;
                top: 11px;
            }
body.p-hash .info-card .warning {
                font-size: 12px;
                padding: 10px 12px;
            }
body.p-hash .watermark {
                font-size: 10px;
                bottom: 8px;
                right: 10px;
            }}
body.p-hash ::-webkit-scrollbar {
            width: 6px;
        }
body.p-hash ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-hash ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
body.p-hash #fh {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-hash #fh:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
body.p-hash #fh i {
            font-size: 13px;
        }
body.p-hash {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-hash .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-hash {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-hash {
        padding-top: 60px;
    }}

/* ================= p-info  (info/index.php) ================= */
body.p-info {
            padding-top: 76px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-left: 20px;
            padding-right: 20px;
        }
body.p-info .page-container {
            max-width: 820px;
            width: 100%;
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 40px 32px;
            margin-top: 20px;
        }
body.p-info h1 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 24px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
body.p-info .info-section {
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
body.p-info .info-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
body.p-info .info-section h2 {
            font-size: 18px;
            color: #5c9eff;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
body.p-info .info-section h2 i {
            color: #5c9eff;
        }
body.p-info .info-section p {
            color: #aaa;
            font-size: 14px;
            line-height: 1.8;
        }
body.p-info .info-section ul {
            list-style: none;
            padding: 0;
        }
body.p-info .info-section ul li {
            padding: 6px 0 6px 24px;
            position: relative;
            color: #aaa;
            font-size: 14px;
        }
body.p-info .info-section ul li::before {
            content: '›';
            position: absolute;
            left: 0;
            color: #5c9eff;
            font-size: 18px;
        }
body.p-info .info-section ul li strong {
            color: #ddd;
        }
body.p-info .version {
            display: inline-block;
            background: rgba(92, 158, 255, 0.12);
            color: #5c9eff;
            padding: 2px 12px;
            border-radius: 8px;
            font-size: 13px;
        }

/* ================= p-login  (login/index.php) ================= */
body.p-login,
body.p-login {
    height: 100%;
    overflow: hidden;
}
body.p-login {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
}
body.p-login <?php if ($isGame): ?>
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        z-index: 0;
    }
body.p-login <?php endif; ?>

    
    .page-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 1;
        padding: 20px 0;
    }
body.p-login .fade-up {
        animation: fadeInUp 0.8s ease-out forwards;
    }
body.p-login .glass-effect {
        background: rgba(30, 30, 35, 0.75);
        backdrop-filter: blur(12px);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
body.p-login h1 {
        font-size: clamp(48px, 10vw, 96px);
        font-weight: 700;
        margin-bottom: 24px;
        <?php if ($isGame): ?>
        color: #ffaa44;
        text-shadow: 0 0 30px rgba(255,170,68,0.3);
        -webkit-text-fill-color: #ffaa44;
        background: none;
        <?php else: ?>
        background: linear-gradient(135deg, #ffffff, #5c9eff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        <?php endif; ?>
        text-align: center;
        flex-shrink: 0;
    }
body.p-login #form {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 28px 28px;
        transition: transform 0.2s;
        border-radius: 8px;
        background: rgba(30, 30, 35, 0.75);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
    }
body.p-login #form:hover {
        transform: translateY(-4px);
    }
body.p-login fieldset {
        border: none;
        padding: 0;
        margin: 0;
    }
body.p-login legend {
        font-size: 28px;
        font-weight: 600;
        color: #eef;
        margin-bottom: 20px;
        display: block;
        text-align: center;
    }
body.p-login .user-count {
        font-size: 14px;
        text-align: center;
        margin-bottom: 20px;
        padding: 6px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        display: inline-block;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        color: #5c9eff;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
body.p-login .user-count strong {
        color: white;
        font-size: 18px;
        margin: 0 4px;
    }
body.p-login input[type="text"],
body.p-login input[type="password"] {
        width: 100%;
        padding: 12px 16px;
        margin: 8px 0;
        background: rgba(20, 20, 25, 0.8);
        border: 1.5px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        color: #f0f0f0;
        font-size: 16px;
        transition: all 0.2s;
        outline: none;
        box-sizing: border-box;
    }
body.p-login input[type="text"]:focus,
body.p-login input[type="password"]:focus {
        border-color: #5c9eff;
        background: rgba(30, 30, 40, 0.9);
        box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.2);
    }
body.p-login input::placeholder {
        color: #aaa;
        font-size: 14px;
        font-weight: 400;
    }
body.p-login input[type="submit"] {
        width: 100%;
        padding: 12px;
        margin-top: 16px;
        background: linear-gradient(135deg, #2a8c2a, #1e6b1e);
        border: none;
        border-radius: 8px;
        color: white;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
body.p-login input[type="submit"]:hover {
        background: linear-gradient(135deg, #35a035, #258025);
        transform: scale(0.98);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
body.p-login .error-message {
        color: #ff8888;
        font-size: 14px;
        margin: 6px 0 0 0;
        text-align: center;
        background: rgba(255, 80, 80, 0.1);
        padding: 6px;
        border-radius: 8px;
    }
body.p-login #go-to-register {
        text-align: center;
        margin-top: 18px;
        font-size: 15px;
        color: #ccddee;
    }
body.p-login #go-to-register a {
        color: #5c9eff;
        text-decoration: none;
        font-weight: 600;
        margin-left: 8px;
        background: transparent;
        padding: 0;
    }
body.p-login #go-to-register a:hover {
        text-decoration: underline;
        color: #5c9eff;
    }
body.p-login .divider {
        width: 60px;
        margin: 16px auto;
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        flex-shrink: 0;
    }
body.p-login #copyright {
        text-align: center;
        padding: 12px 20px 8px;
        width: 100%;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }
body.p-login .text-small {
        font-size: 11px;
        color: #666;
        display: inline-block;
    }
body.p-login #website {
        position: fixed;
        bottom: 16px;
        right: 20px;
        font-size: 13px;
        color: #aaa;
        background: rgba(0,0,0,0.4);
        padding: 6px 12px;
        border-radius: 8px;
        backdrop-filter: blur(4px);
        z-index: 99;
        pointer-events: none;
    }
body.p-login #ga {
        width: 16px;
        height: 16px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 4px;
    }
body.p-login .site-logo {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 999;
        display: block;
        width: 60px;
        height: 60px;
        transition: all 0.3s ease;
    }
body.p-login .site-logo:hover {
        transform: scale(1.05);
    }
body.p-login .logo-img {
        width: 100%;
        height: 100%;
        display: block;
    }
@media (max-width: 768px){body.p-login .page-wrapper {
            padding: 10px 0;
            justify-content: center;
        }
body.p-login h1 {
            font-size: 40px !important;
            margin-bottom: 16px !important;
        }
body.p-login #form {
            padding: 20px 18px !important;
            border-radius: 8px;
            max-width: 100% !important;
        }
body.p-login legend {
            font-size: 24px !important;
            margin-bottom: 16px !important;
        }
body.p-login input[type="text"],
body.p-login input[type="password"] {
            padding: 10px 14px !important;
            font-size: 15px !important;
            margin: 6px 0 !important;
            border-radius: 8px !important;
        }
body.p-login input[type="submit"] {
            padding: 12px !important;
            font-size: 16px !important;
            margin-top: 12px !important;
            border-radius: 8px !important;
        }
body.p-login .user-count {
            font-size: 12px;
            padding: 4px 12px;
            margin-bottom: 16px;
            border-radius: 8px;
        }
body.p-login .user-count strong {
            font-size: 16px;
        }
body.p-login #go-to-register {
            font-size: 14px;
            margin-top: 14px;
        }
body.p-login .text-small {
            font-size: 10px;
        }
body.p-login #website {
            display: none;
        }
body.p-login .divider {
            margin: 12px auto;
            width: 40px;
        }
body.p-login #copyright {
            padding: 8px 16px 4px;
        }
body.p-login .site-logo {
            width: 44px;
            height: 44px;
            top: 10px;
            left: 10px;
        }}
@media (max-width: 480px){body.p-login #form {
            padding: 16px 14px !important;
            border-radius: 8px !important;
        }
body.p-login legend {
            font-size: 20px !important;
            margin-bottom: 12px !important;
        }
body.p-login input[type="text"],
body.p-login input[type="password"] {
            padding: 8px 12px !important;
            font-size: 14px !important;
            border-radius: 8px !important;
        }
body.p-login input[type="submit"] {
            padding: 10px !important;
            font-size: 15px !important;
        }
body.p-login .site-logo {
            width: 36px;
            height: 36px;
            top: 8px;
            left: 8px;
        }
body.p-login h1 {
            font-size: 32px !important;
            margin-bottom: 12px !important;
        }
body.p-login #go-to-register {
            font-size: 13px;
            margin-top: 10px;
        }}
@media (max-width: 380px){body.p-login h1 {
            font-size: 26px !important;
        }
body.p-login #form {
            padding: 12px 10px !important;
        }
body.p-login legend {
            font-size: 18px !important;
        }
body.p-login .user-count {
            font-size: 11px;
            padding: 3px 10px;
        }
body.p-login .user-count strong {
            font-size: 14px;
        }}
body.p-login .turnstile-placeholder {
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0 16px;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
body.p-login .turnstile-placeholder .icon {
    font-size: 20px;
    color: #5c9eff;
}
body.p-login .turnstile-placeholder .info {
    font-size: 14px;
    color: #aaa;
}
body.p-login .turnstile-placeholder .info strong {
    color: #5c9eff;
}
body.p-login .turnstile-placeholder .timer {
    font-size: 18px;
    font-weight: 700;
    color: #4cd964;
    min-width: 30px;
    display: inline-block;
}
body.p-login .turnstile-placeholder .status-done {
    color: #4cd964;
    font-weight: 600;
}
body.p-login .turnstile-placeholder .status-done i {
    margin-right: 6px;
}

/* ================= p-pi  (pi/index.php) ================= */
body.p-pi #fh {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-pi #fh:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
body.p-pi #fh i {
            font-size: 13px;
        }
body.p-pi {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eee;
    padding: 20px;
}
body.p-pi .fade-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }
body.p-pi h1 {
            font-size: clamp(40px, 8vw, 64px);
            font-weight: 700;
            margin: 20px 0 8px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }
body.p-pi .subtitle {
            font-size: 14px;
            color: #666;
            margin-bottom: 28px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
body.p-pi .subtitle i {
            color: #5c9eff;
        }
body.p-pi .subtitle strong {
            color: #5c9eff;
            font-weight: 600;
        }
body.p-pi .card {
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 32px 28px;
            width: 100%;
            max-width: 820px;
            transition: all 0.3s ease;
        }
body.p-pi .card:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }
body.p-pi .card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }
body.p-pi .card-header i {
            font-size: 24px;
            color: #5c9eff;
        }
body.p-pi .card-header span {
            font-size: 16px;
            font-weight: 500;
            color: #aaa;
        }
body.p-pi .card-header .pi-symbol {
            font-size: 28px;
            font-weight: 700;
            color: #5c9eff;
            margin-right: 4px;
        }
body.p-pi .pi-display {
            background: rgba(0, 0, 0, 0.35);
            border-radius: 8px;
            padding: 24px 20px;
            font-family: "Consolas", "Courier New", monospace;
            font-size: clamp(14px, 2vw, 18px);
            line-height: 2;
            color: #5c9eff;
            word-break: break-all;
            overflow-x: auto;
            user-select: all;
            max-height: 520px;
            overflow-y: auto;
        }
body.p-pi .pi-display .highlight {
            color: #4cd964;
            font-weight: 700;
        }
body.p-pi .pi-display .dim {
            color: #444;
        }
body.p-pi .stats {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 20px;
            padding-top: 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
body.p-pi .stats-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #888;
        }
body.p-pi .stats-item i {
            color: #5c9eff;
            width: 18px;
        }
body.p-pi .stats-item strong {
            color: #eef;
            font-weight: 600;
        }
body.p-pi .watermark {
            position: fixed;
            bottom: 12px;
            right: 14px;
            z-index: 99;
            color: #555;
            font-size: 11px;
            pointer-events: none;
            font-family: monospace;
        }
@media (max-width: 768px){body.p-pi {
                padding: 16px 12px;
            }
body.p-pi .card {
                padding: 20px 16px;
                border-radius: 8px;
            }
body.p-pi .card-header i {
                font-size: 20px;
            }
body.p-pi .card-header span {
                font-size: 14px;
            }
body.p-pi .pi-display {
                font-size: 13px;
                padding: 16px 14px;
                line-height: 1.8;
                max-height: 400px;
            }
body.p-pi .subtitle {
                font-size: 13px;
            }}
@media (max-width: 480px){body.p-pi {
                padding: 12px 8px;
            }
body.p-pi h1 {
                font-size: 32px;
                margin-top: 10px;
            }
body.p-pi .card {
                padding: 16px 12px;
                border-radius: 8px;
            }
body.p-pi .card-header {
                margin-bottom: 14px;
                padding-bottom: 10px;
            }
body.p-pi .card-header i {
                font-size: 18px;
            }
body.p-pi .card-header span {
                font-size: 13px;
            }
body.p-pi .card-header .pi-symbol {
                font-size: 22px;
            }
body.p-pi .pi-display {
                font-size: 11px;
                padding: 12px 10px;
                line-height: 1.7;
                max-height: 320px;
            }
body.p-pi .subtitle {
                font-size: 12px;
                margin-bottom: 18px;
            }
body.p-pi .stats {
                gap: 12px;
            }
body.p-pi .stats-item {
                font-size: 12px;
            }
body.p-pi .watermark {
                font-size: 10px;
                bottom: 8px;
                right: 10px;
            }}
body.p-pi ::-webkit-scrollbar {
            width: 6px;
        }
body.p-pi ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
        }
body.p-pi ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
body.p-pi {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-pi .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-pi {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-pi {
        padding-top: 60px;
    }}

/* ================= p-raing  (rain-g/index.php) ================= */
body.p-raing {
            background: #000;
            overflow: hidden;
            height: 100vh;
            font-family: "Courier New", "Fira Code", monospace;
        }
body.p-raing canvas {
            display: block;
            width: 100vw;
            height: 100vh;
        }
body.p-raing .credit {
            position: fixed;
            bottom: 18px;
            right: 24px;
            z-index: 10;
            color: rgba(0, 255, 65, 0.25);
            font-size: 15px;
            font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
            letter-spacing: 1.5px;
            user-select: none;
            pointer-events: none;
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.15);
            transition: opacity 0.6s;
        }
body.p-raing .credit:hover {
            opacity: 0.7;
        }
body.p-raing .hint {
            position: fixed;
            bottom: 70px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            color: rgba(0, 255, 65, 0.12);
            font-size: 13px;
            font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
            letter-spacing: 3px;
            user-select: none;
            pointer-events: none;
            white-space: nowrap;
            animation: fadeHint 6s ease-in-out infinite alternate;
        }
@keyframes fadeHint{
            0% {
                opacity: 0.1;
            }
            100% {
                opacity: 0.5;
            }
        }
@media (max-width: 640px){body.p-raing .credit {
                font-size: 12px;
                bottom: 12px;
                right: 16px;
            }
body.p-raing .hint {
                font-size: 10px;
                bottom: 50px;
            }}
body.p-raing {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-raing .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-raing {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-raing {
        padding-top: 60px;
    }}

/* ================= p-register  (register/index.php) ================= */
body.p-register,
body.p-register {
    height: 100%;
    overflow: hidden;
}
body.p-register {
    background-color: #111111;
    background-image: url('/bg.svg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 34.5px;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
}
body.p-register <?php if ($isGame): ?>
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        z-index: 0;
    }
body.p-register <?php endif; ?>

    
    .page-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 1;
        padding: 20px 0;
    }
body.p-register .fade-up {
        animation: fadeInUp 0.8s ease-out forwards;
    }
body.p-register .glass-effect {
        background: rgba(30, 30, 35, 0.75);
        backdrop-filter: blur(12px);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
body.p-register h1 {
        font-size: clamp(48px, 10vw, 96px);
        font-weight: 700;
        margin-bottom: 24px;
        <?php if ($isGame): ?>
        color: #ffaa44;
        text-shadow: 0 0 30px rgba(255,170,68,0.3);
        -webkit-text-fill-color: #ffaa44;
        background: none;
        <?php else: ?>
        background: linear-gradient(135deg, #ffffff, #5c9eff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        <?php endif; ?>
        text-align: center;
        flex-shrink: 0;
    }
body.p-register #form {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 28px 28px;
        transition: transform 0.2s;
        border-radius: 8px;
        background: rgba(30, 30, 35, 0.75);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
    }
body.p-register #form:hover {
        transform: translateY(-4px);
    }
body.p-register fieldset {
        border: none;
        padding: 0;
        margin: 0;
    }
body.p-register legend {
        font-size: 28px;
        font-weight: 600;
        color: #eef;
        margin-bottom: 20px;
        display: block;
        text-align: center;
    }
body.p-register .user-count {
        font-size: 14px;
        text-align: center;
        margin-bottom: 20px;
        padding: 6px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        display: inline-block;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        color: #5c9eff;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
body.p-register .user-count strong {
        color: white;
        font-size: 18px;
        margin: 0 4px;
    }
body.p-register input[type="text"],
body.p-register input[type="password"] {
        width: 100%;
        padding: 12px 16px;
        margin: 8px 0;
        background: rgba(20, 20, 25, 0.8);
        border: 1.5px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        color: #f0f0f0;
        font-size: 16px;
        transition: all 0.2s;
        outline: none;
        box-sizing: border-box;
    }
body.p-register input[type="text"]:focus,
body.p-register input[type="password"]:focus {
        border-color: #5c9eff;
        background: rgba(30, 30, 40, 0.9);
        box-shadow: 0 0 0 3px rgba(92, 158, 255, 0.2);
    }
body.p-register input::placeholder {
        color: #aaa;
        font-size: 14px;
        font-weight: 400;
    }
body.p-register input[type="submit"] {
        width: 100%;
        padding: 12px;
        margin-top: 16px;
        background: linear-gradient(135deg, #2a8c2a, #1e6b1e);
        border: none;
        border-radius: 8px;
        color: white;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
body.p-register input[type="submit"]:hover {
        background: linear-gradient(135deg, #35a035, #258025);
        transform: scale(0.98);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
body.p-register .error-message {
        color: #ff8888;
        font-size: 14px;
        margin: 6px 0 0 0;
        text-align: center;
        background: rgba(255, 80, 80, 0.1);
        padding: 6px;
        border-radius: 8px;
    }
body.p-register .success-box {
        text-align: center;
        padding: 16px 0;
    }
body.p-register .success-icon {
        font-size: 56px;
        margin-bottom: 12px;
    }
body.p-register .success-box p {
        color: #eef;
        font-size: 17px;
        margin: 6px 0;
    }
body.p-register .redirect-link {
        display: inline-block;
        margin-top: 16px;
        padding: 10px 28px;
        background: linear-gradient(135deg, #2a8c2a, #1e6b1e);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.2s;
    }
body.p-register .redirect-link:hover {
        background: linear-gradient(135deg, #35a035, #258025);
        transform: scale(0.98);
    }
body.p-register #go-to-login {
        text-align: center;
        margin-top: 18px;
        font-size: 15px;
        color: #ccddee;
    }
body.p-register #go-to-login a {
        color: #5c9eff;
        text-decoration: none;
        font-weight: 600;
        margin-left: 8px;
        background: transparent;
        padding: 0;
    }
body.p-register #go-to-login a:hover {
        text-decoration: underline;
        color: #5c9eff;
    }
body.p-register .divider {
        width: 60px;
        margin: 16px auto;
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        flex-shrink: 0;
    }
body.p-register #copyright {
        text-align: center;
        padding: 12px 20px 8px;
        width: 100%;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }
body.p-register .text-small {
        font-size: 11px;
        color: #666;
        display: inline-block;
    }
body.p-register #website {
        position: fixed;
        bottom: 16px;
        right: 20px;
        font-size: 13px;
        color: #aaa;
        background: rgba(0,0,0,0.4);
        padding: 6px 12px;
        border-radius: 8px;
        backdrop-filter: blur(4px);
        z-index: 99;
        pointer-events: none;
    }
body.p-register #ga {
        width: 16px;
        height: 16px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 4px;
    }
body.p-register .site-logo {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 999;
        display: block;
        width: 60px;
        height: 60px;
        transition: all 0.3s ease;
    }
body.p-register .site-logo:hover {
        transform: scale(1.05);
    }
body.p-register .logo-img {
        width: 100%;
        height: 100%;
        display: block;
    }
@media (max-width: 768px){body.p-register .page-wrapper {
            padding: 10px 0;
            justify-content: center;
        }
body.p-register h1 {
            font-size: 40px !important;
            margin-bottom: 16px !important;
        }
body.p-register #form {
            padding: 20px 18px !important;
            border-radius: 8px;
            max-width: 100% !important;
        }
body.p-register legend {
            font-size: 24px !important;
            margin-bottom: 16px !important;
        }
body.p-register input[type="text"],
body.p-register input[type="password"] {
            padding: 10px 14px !important;
            font-size: 15px !important;
            margin: 6px 0 !important;
            border-radius: 8px !important;
        }
body.p-register input[type="submit"] {
            padding: 12px !important;
            font-size: 16px !important;
            margin-top: 12px !important;
            border-radius: 8px !important;
        }
body.p-register .user-count {
            font-size: 12px;
            padding: 4px 12px;
            margin-bottom: 16px;
            border-radius: 8px;
        }
body.p-register .user-count strong {
            font-size: 16px;
        }
body.p-register #go-to-login {
            font-size: 14px;
            margin-top: 14px;
        }
body.p-register .text-small {
            font-size: 10px;
        }
body.p-register #website {
            display: none;
        }
body.p-register .divider {
            margin: 12px auto;
            width: 40px;
        }
body.p-register #copyright {
            padding: 8px 16px 4px;
        }
body.p-register .success-box {
            padding: 12px 0;
        }
body.p-register .success-icon {
            font-size: 44px;
            margin-bottom: 8px;
        }
body.p-register .success-box p {
            font-size: 15px;
        }
body.p-register .redirect-link {
            padding: 8px 22px;
            font-size: 14px;
        }
body.p-register .site-logo {
            width: 44px;
            height: 44px;
            top: 10px;
            left: 10px;
        }}
@media (max-width: 480px){body.p-register #form {
            padding: 16px 14px !important;
            border-radius: 8px !important;
        }
body.p-register legend {
            font-size: 20px !important;
            margin-bottom: 12px !important;
        }
body.p-register input[type="text"],
body.p-register input[type="password"] {
            padding: 8px 12px !important;
            font-size: 14px !important;
            border-radius: 8px !important;
        }
body.p-register input[type="submit"] {
            padding: 10px !important;
            font-size: 15px !important;
        }
body.p-register .site-logo {
            width: 36px;
            height: 36px;
            top: 8px;
            left: 8px;
        }
body.p-register h1 {
            font-size: 32px !important;
            margin-bottom: 12px !important;
        }
body.p-register #go-to-login {
            font-size: 13px;
            margin-top: 10px;
        }
body.p-register .success-icon {
            font-size: 36px;
        }
body.p-register .success-box p {
            font-size: 14px;
        }}
@media (max-width: 380px){body.p-register h1 {
            font-size: 26px !important;
        }
body.p-register #form {
            padding: 12px 10px !important;
        }
body.p-register legend {
            font-size: 18px !important;
        }
body.p-register .user-count {
            font-size: 11px;
            padding: 3px 10px;
        }
body.p-register .user-count strong {
            font-size: 14px;
        }}
body.p-register .turnstile-placeholder {
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0 16px;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
body.p-register .turnstile-placeholder .icon {
    font-size: 20px;
    color: #5c9eff;
}
body.p-register .turnstile-placeholder .info {
    font-size: 14px;
    color: #aaa;
}
body.p-register .turnstile-placeholder .info strong {
    color: #5c9eff;
}
body.p-register .turnstile-placeholder .timer {
    font-size: 18px;
    font-weight: 700;
    color: #4cd964;
    min-width: 30px;
    display: inline-block;
}
body.p-register .turnstile-placeholder .status-done {
    color: #4cd964;
    font-weight: 600;
}
body.p-register .turnstile-placeholder .status-done i {
    margin-right: 6px;
}

/* ================= p-tools  (tools/index.php) ================= */
body.p-tools {
            padding-top: 76px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-left: 20px;
            padding-right: 20px;
        }
body.p-tools .page-container {
            max-width: 820px;
            width: 100%;
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 40px 32px;
            margin-top: 20px;
        }
body.p-tools h1 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 24px;
            background: linear-gradient(135deg, #fff, #5c9eff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: flex;
            align-items: center;
            gap: 12px;
        }
body.p-tools h1 i {
            color: #5c9eff;
            -webkit-text-fill-color: #5c9eff;
        }
body.p-tools .tool-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
        }
body.p-tools .tool-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 16px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            text-decoration: none;
            color: #eee;
            transition: all 0.2s;
            text-align: center;
        }
body.p-tools .tool-item:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateY(-4px);
            text-decoration: none;
        }
body.p-tools .tool-item i {
            font-size: 32px;
            color: #5c9eff;
            margin-bottom: 8px;
        }
body.p-tools .tool-item .name {
            font-weight: 600;
            font-size: 14px;
        }
body.p-tools .tool-item .desc {
            font-size: 12px;
            color: #888;
            margin-top: 4px;
        }
@media (max-width: 480px){body.p-tools .tool-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
body.p-tools .page-container {
                padding: 24px 16px;
            }}

/* ================= p-user  (user/index.php) ================= */
body.p-user {
            font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
            min-height: 100vh;
            background-color: #111111;
            background-image: url('/bg.svg');
            background-repeat: repeat;
            background-size: 60px 34.5px;
            background-attachment: fixed;
            color: #eee;
            padding: 20px;
            padding-top: 76px;
        }
body.p-user .back-btn {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-user .back-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
body.p-user .profile-container {
            max-width: 820px;
            margin: 20px auto 0;
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            overflow: hidden;
        }
body.p-user .cover-area {
            height: 200px;
            background: linear-gradient(135deg, #1a2a4a, #2a1a3a);
            position: relative;
            overflow: hidden;
        }
body.p-user .cover-area img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
body.p-user .cover-area .cover-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #555;
            font-size: 48px;
        }
body.p-user .avatar-area {
            position: relative;
            margin-top: -60px;
            padding: 0 24px;
            display: flex;
            align-items: flex-end;
            gap: 20px;
            flex-wrap: wrap;
        }
body.p-user .avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px solid rgba(255,255,255,0.15);
            background: #2a2a3a;
            overflow: hidden;
            flex-shrink: 0;
        }
body.p-user .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
body.p-user .avatar .avatar-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 40px;
            color: #666;
        }
body.p-user .username {
            font-size: 24px;
            font-weight: 700;
            padding-bottom: 4px;
        }
body.p-user .username .badge {
            font-size: 13px;
            font-weight: 400;
            background: rgba(92, 158, 255, 0.15);
            padding: 2px 12px;
            border-radius: 8px;
            color: #5c9eff;
            margin-left: 10px;
        }
body.p-user .username-small {
            font-size: 14px;
            color: #888;
            padding-bottom: 8px;
        }
body.p-user .info-area {
            padding: 20px 24px 24px;
        }
body.p-user .bio {
            font-size: 15px;
            color: #aaa;
            line-height: 1.6;
            margin-bottom: 16px;
            padding: 12px 16px;
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
        }
body.p-user .meta-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 8px 20px;
            font-size: 13px;
            color: #888;
            padding: 12px 0;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
body.p-user .meta-grid i {
            color: #5c9eff;
            width: 18px;
            margin-right: 6px;
        }
body.p-user .intro-area {
            padding: 20px 24px 24px;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
body.p-user .intro-area h3 {
            font-size: 15px;
            color: #5c9eff;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-user .intro-area h3 i {
            color: #5c9eff;
        }
body.p-user .intro-content {
            font-size: 14px;
            line-height: 1.8;
            color: #ddd;
            padding: 12px 16px;
            background: rgba(0,0,0,0.15);
            border-radius: 8px;
            min-height: 60px;
        }
body.p-user .intro-content p { margin-bottom: 8px; }
body.p-user .intro-content p:last-child { margin-bottom: 0; }
body.p-user .intro-content code {
            background: rgba(255,255,255,0.06);
            padding: 2px 8px;
            border-radius: 4px;
            color: #66e9df;
        }
body.p-user .intro-content pre {
            background: rgba(0,0,0,0.3);
            padding: 12px;
            border-radius: 8px;
            overflow-x: auto;
        }
body.p-user .edit-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 20px;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            margin-top: 4px;
        }
body.p-user .edit-btn:hover { opacity: 0.85; transform: scale(0.97); }
@media (max-width: 768px){body.p-user { padding-top: 68px; }
body.p-user .cover-area { height: 120px; }
body.p-user .avatar-area { flex-direction: column; align-items: center; text-align: center; margin-top: -40px; }
body.p-user .avatar { width: 80px; height: 80px; }
body.p-user .meta-grid { grid-template-columns: 1fr; }}
@media (max-width: 480px){body.p-user { padding-top: 60px; }
body.p-user .avatar-area { flex-direction: column; align-items: center; text-align: center; margin-top: -40px; }
body.p-user .avatar { width: 80px; height: 80px; }
body.p-user .cover-area { height: 120px; }
body.p-user .meta-grid { grid-template-columns: 1fr; }}

/* ================= p-useredit  (user/edit/index.php) ================= */
body.p-useredit {
            font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial, sans-serif;
            min-height: 100vh;
            background-color: #111111;
            background-image: url('/bg.svg');
            background-repeat: repeat;
            background-size: 60px 34.5px;
            background-attachment: fixed;
            color: #eee;
            padding: 20px;
        }
body.p-useredit .back-btn {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 100;
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(10px);
            padding: 10px 18px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #5c9eff;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body.p-useredit .back-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
body.p-useredit .edit-container {
            max-width: 700px;
            margin: 70px auto 0;
            background: rgba(30, 30, 38, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 32px 28px;
        }
body.p-useredit h1 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
body.p-useredit h1 i { color: #5c9eff; }
body.p-useredit .form-group {
            margin-bottom: 20px;
        }
body.p-useredit .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #aaa;
            margin-bottom: 6px;
        }
body.p-useredit .form-group label i {
            color: #5c9eff;
            margin-right: 6px;
        }
body.p-useredit .form-group input[type="text"],
body.p-useredit .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            background: rgba(20, 20, 25, 0.9);
            border: 1.5px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #f0f0f0;
            font-size: 15px;
            outline: none;
            transition: all 0.2s;
            font-family: inherit;
        }
body.p-useredit .form-group input[type="text"]:focus,
body.p-useredit .form-group textarea:focus {
            border-color: #5c9eff;
            box-shadow: 0 0 0 3px rgba(92,158,255,0.15);
        }
body.p-useredit .form-group textarea {
            min-height: 80px;
            resize: vertical;
        }
body.p-useredit .form-group .char-count {
            text-align: right;
            font-size: 12px;
            color: #666;
            margin-top: 4px;
        }
body.p-useredit .btn-submit {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #5c9eff, #5c9eff);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
body.p-useredit .btn-submit:hover { opacity: 0.85; transform: scale(0.98); }
body.p-useredit .message {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 16px;
        }
body.p-useredit .message.error {
            background: rgba(255,80,80,0.15);
            border: 1px solid rgba(255,80,80,0.2);
            color: #ff8888;
        }
body.p-useredit .message.success {
            background: rgba(76,217,100,0.15);
            border: 1px solid rgba(76,217,100,0.2);
            color: #4cd964;
        }
body.p-useredit .EasyMDEContainer .CodeMirror {
            background: rgba(20,20,25,0.9) !important;
            color: #f0f0f0 !important;
            border-radius: 8px 8px 0 0 !important;
            border: 1.5px solid rgba(255,255,255,0.1) !important;
            border-bottom: none !important;
        }
body.p-useredit .EasyMDEContainer .editor-toolbar {
            background: rgba(20,20,25,0.9) !important;
            border: 1.5px solid rgba(255,255,255,0.1) !important;
            border-bottom: none !important;
            border-radius: 8px 8px 0 0 !important;
        }
body.p-useredit .EasyMDEContainer .editor-toolbar button { color: #aaa !important; }
body.p-useredit .EasyMDEContainer .editor-toolbar button:hover { background: rgba(255,255,255,0.1) !important; color: #eee !important; }
body.p-useredit .EasyMDEContainer .editor-statusbar {
            background: rgba(20,20,25,0.9) !important;
            border: 1.5px solid rgba(255,255,255,0.1) !important;
            border-top: none !important;
            border-radius: 0 0 8px 8px !important;
            color: #666 !important;
        }
body.p-useredit .EasyMDEContainer .editor-preview {
            background: rgba(10,14,22,0.95) !important;
            color: #ddd !important;
            border-radius: 0 0 8px 8px !important;
            border: 1.5px solid rgba(255,255,255,0.1) !important;
            border-top: none !important;
        }
body.p-useredit {
    padding-top: 76px; /* 60px 导航栏 + 16px 呼吸空间 */
}
body.p-useredit .navbar-spacer {
    display: none;
}
@media (max-width: 768px){body.p-useredit {
        padding-top: 68px;
    }}
@media (max-width: 480px){body.p-useredit {
        padding-top: 60px;
    }}


/* ================= p-particle  (particle/index.php) ================= */
body.p-particle {
    user-select: none;
    background-color: #0a0a0f;
    width: 98vw;
    height: 97vh;
    display: block;      /* 覆盖 header 基础 flex 布局 */
    padding: 76px 0 0;   /* 覆盖 header 基础左右 padding */
}
body.p-particle * {
    font-family: "Microsoft YaHei", "思源黑体", "微软雅黑", "PingFang SC", "苹方", "黑体", Arial;
}
body.p-particle #particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 放到最底层 */
    background: #090909;
}
body.p-particle .navbar-spacer {
    display: none;
}

/* 手机端适配 */
@media (max-width: 768px) {
    body.p-particle {
        padding-top: 68px;
    }
}

@media (max-width: 480px) {
    body.p-particle {
        padding-top: 60px;
    }
}

/* ================= p-pnet  (particle-network/index.php) ================= */
body.p-pnet {
    margin: 0;
    padding: 0;
}
body.p-pnet #particle-canvas {
    width: 100%;
    height: 100%;
}
