/*
Theme Name: WProxmox
Theme URI: https://www.proxmox.com.cn
Author: Proxmox Chinese
Author URI: https://www.proxmox.com.cn
Description: Proxmox 中文技术服务站 WordPress 主题 - 企业级开源虚拟化解决方案展示
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wproxmox
Tags: one-column, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, theme-options
*/

:root {
    --proxmox-orange: #E57024;
    --proxmox-dark: #212529;
    --pdm-blue: #3B82F6;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #374151;
    background-color: #f9fafb;
}

.bg-proxmox { background-color: var(--proxmox-orange); }
.bg-pve { background-color: var(--proxmox-orange); }
.text-proxmox { color: var(--proxmox-orange); }
.text-pve { color: var(--proxmox-orange); }
.bg-dark { background-color: var(--proxmox-dark); }
.border-pve { border-color: var(--proxmox-orange); }
.bg-pdm { background-color: var(--pdm-blue); }
.text-pdm { color: var(--pdm-blue); }

/* Card hover effects */
.hover-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

/* WeChat QR Code Modal */
.wechat-qr-wrapper {
    position: relative;
    display: inline-block;
}
.wechat-qr-code {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 10px;
}
.wechat-qr-code::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}
.wechat-qr-wrapper:hover .wechat-qr-code {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.wechat-qr-code img {
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 8px;
}
.wechat-qr-code p {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Dedup animation */
@keyframes pulse-orange {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}
.animate-dedup { animation: pulse-orange 3s infinite ease-in-out; }

/* Mail flow animation */
@keyframes flow {
    0% { left: -10%; }
    100% { left: 110%; }
}
.animate-flow {
    position: absolute;
    height: 2px;
    background: var(--proxmox-orange);
    animation: flow 3s linear infinite;
}

/* PDM pulse animation */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse-slow { animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* WordPress specific overrides */
.entry-content img {
    max-width: 100%;
    height: auto;
}

.wp-caption {
    max-width: 100%;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Article Body Styles */
.article-body { font-size: 15px; line-height: 1.8; color: #374151; }
.article-body p { margin-bottom: 1.1em; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin-top: 1.8em; margin-bottom: 0.6em; color: #111827; }
.article-body h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.4em; margin-bottom: 0.5em; color: #1f2937; }
.article-body h4 { font-size: 1.05rem; font-weight: 600; margin-top: 1.2em; margin-bottom: 0.4em; color: #374151; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.4em 0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.article-body blockquote { border-left: 4px solid var(--proxmox-orange); background: #fff7ed; padding: 0.7em 1.1em; margin: 1em 0; border-radius: 0 8px 8px 0; color: #6b7280; }
.article-body a { color: var(--proxmox-orange); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1em; }
.article-body li { margin-bottom: 0.35em; }
.article-body code { background: #fff7ed; color: var(--proxmox-orange); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.article-body pre { background: #111827; color: #e5e7eb; padding: 1em; border-radius: 10px; overflow-x: auto; margin: 1em 0; font-size: 0.9em; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1em 0; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.article-body th { background: #f9fafb; font-weight: 600; padding: 0.5em 0.9em; border: 1px solid #e5e7eb; text-align: left; }
.article-body td { padding: 0.4em 0.9em; border: 1px solid #e5e7eb; }

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination styling */
.nav-links {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-links .page-numbers:hover {
    border-color: var(--proxmox-orange);
    color: var(--proxmox-orange);
    box-shadow: 0 2px 8px rgba(229,112,36,0.15);
}
.nav-links .page-numbers.current {
    background-color: var(--proxmox-orange);
    border-color: var(--proxmox-orange);
    color: #fff;
    box-shadow: 0 2px 8px rgba(229,112,36,0.3);
}
.nav-links .page-numbers.dots {
    border: none;
    background: none;
    color: #9ca3af;
    min-width: auto;
}
.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    font-weight: 600;
    padding: 0 1rem;
    background: #f9fafb;
}
.nav-links .page-numbers.prev:hover,
.nav-links .page-numbers.next:hover {
    background: #fff7ed;
}

/* Consultation form messages */
.wproxmox-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.wproxmox-form-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.wproxmox-form-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Honeypot field - hidden from humans, visible to bots */
.wproxmox-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
