:root {
    --wpx-primary: #2563eb;
    --wpx-primary-hover: #1d4ed8;
    --wpx-primary-light: #eff6ff;
    --wpx-radius: 12px;
    --wpx-text: #1f2937;
    --wpx-text-secondary: #6b7280;
    --wpx-text-muted: #9ca3af;
    --wpx-bg: #ffffff;
    --wpx-bg-secondary: #f9fafb;
    --wpx-bg-dark: #111827;
    --wpx-border: #e5e7eb;
    --wpx-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --wpx-shadow-lg: 0 10px 40px rgba(0,0,0,0.06);
    --wpx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wpx-max-width: 1280px;
    --wpx-transition: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--wpx-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--wpx-text);
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f1f5 40%, #e8eaef 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 全局文章内容重置：覆盖 WordPress 默认 block 样式 */
.wpx-single-content,
.entry-content,
.post-content,
article .content {
    line-height: 1.8 !important;
    font-size: 16px !important;
    color: #333 !important;
}

.wpx-single-content h2,
.entry-content h2,
.post-content h2,
article .content h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 32px 0 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid var(--wpx-primary) !important;
    color: #1f2937 !important;
}

.wpx-single-content h3,
.entry-content h3,
.post-content h3,
article .content h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 24px 0 12px !important;
    color: #1f2937 !important;
}

.wpx-single-content p,
.entry-content p,
.post-content p,
article .content p {
    margin-bottom: 16px !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

a {
    color: var(--wpx-primary);
    text-decoration: none;
    transition: color var(--wpx-transition);
}

a:hover {
    color: var(--wpx-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wpx-container {
    max-width: var(--wpx-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.wpx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: var(--wpx-radius);
    cursor: pointer;
    transition: all var(--wpx-transition);
    font-family: var(--wpx-font);
    text-decoration: none;
    white-space: nowrap;
}

.wpx-btn-primary {
    background: linear-gradient(135deg, var(--wpx-primary), #1d4ed8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.wpx-btn-primary:hover {
    background: linear-gradient(135deg, var(--wpx-primary-hover), #1e40af);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.wpx-btn-secondary {
    background: transparent;
    color: var(--wpx-primary);
    border-color: var(--wpx-primary);
}

.wpx-btn-secondary:hover {
    background: linear-gradient(135deg, var(--wpx-primary), #1d4ed8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.wpx-btn-ghost {
    background: transparent;
    color: var(--wpx-text);
    border-color: transparent;
}

.wpx-btn-ghost:hover {
    background: var(--wpx-bg-secondary);
    color: var(--wpx-primary);
}

.wpx-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.wpx-btn-block {
    width: 100%;
}

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

.wpx-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--wpx-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wpx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.wpx-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--wpx-text);
    text-decoration: none;
    flex-shrink: 0;
}

.wpx-header-nav-btns {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.wpx-header-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--wpx-radius);
    color: var(--wpx-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--wpx-transition);
    white-space: nowrap;
}

.wpx-header-nav-btn:hover {
    color: var(--wpx-primary);
    background: var(--wpx-primary-light);
}

.wpx-header-nav-icon {
    display: flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wpx-header-nav-icon svg {
    width: 20px;
    height: 20px;
}

.wpx-header-nav-label {
    line-height: 1;
}

.wpx-logo-text {
    background: linear-gradient(135deg, var(--wpx-primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.wpx-nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.wpx-nav-list a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--wpx-radius);
    color: var(--wpx-text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--wpx-transition);
}

.wpx-nav-list a:hover,
.wpx-nav-list .current-menu-item a {
    color: var(--wpx-primary);
    background: var(--wpx-primary-light);
}

.wpx-member-link {
    padding: 8px 16px;
    border-radius: var(--wpx-radius);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

.wpx-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wpx-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpx-header-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--wpx-text);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--wpx-radius);
    transition: background var(--wpx-transition);
}

.wpx-header-user-link:hover {
    background: var(--wpx-bg);
    color: var(--wpx-primary);
}

.wpx-header-avatar {
    border-radius: 50%;
    vertical-align: middle;
    object-fit: cover;
    object-position: center;
}

.wpx-header-user-link span {
    white-space: nowrap;
}

.wpx-member-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 20px;
}

.wpx-member-badge-lg {
    padding: 4px 14px;
    font-size: 13px;
}

.wpx-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.wpx-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wpx-text);
    border-radius: 2px;
    transition: all var(--wpx-transition);
}

.wpx-main {
    min-height: calc(100vh - 64px);
}

.wpx-hero {
    padding: 80px 0 60px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    position: relative;
    overflow: hidden;
}

.wpx-hero::before,
.wpx-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
    animation: wpx-float 8s ease-in-out infinite;
}

.wpx-hero::after {
    animation-delay: -4s;
}

@keyframes wpx-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -15px); }
}

.wpx-hero::before {
    width: 400px;
    height: 400px;
    top: -120px;
    right: -80px;
    background: var(--wpx-primary);
}

.wpx-hero::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -60px;
    background: #7c3aed;
}

.wpx-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--wpx-text) 0%, #374151 50%, var(--wpx-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.wpx-hero-desc {
    font-size: 18px;
    color: var(--wpx-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.wpx-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.wpx-hero-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 50px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
    position: relative;
    z-index: 1;
}

.wpx-hero-search:focus-within {
    border-color: var(--wpx-primary);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15), 0 0 0 4px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.wpx-hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 16px;
    background: transparent;
    color: var(--wpx-text);
}

.wpx-hero-search-input::placeholder {
    color: var(--wpx-text-secondary);
}

.wpx-hero-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: none;
    background: var(--wpx-primary);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wpx-hero-search-btn:hover {
    opacity: 0.9;
}

.wpx-qe-section {
    display: none;
}

.wpx-qe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.wpx-qe-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius, 12px);
    text-decoration: none;
    color: var(--wpx-text);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.wpx-qe-card:hover {
    box-shadow:
        0 6px 20px rgba(59, 130, 246, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.15);
}

.wpx-qe-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--wpx-primary);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(124, 58, 237, 0.06));
}

.wpx-qe-card-icon svg {
    width: 32px;
    height: 32px;
}

.wpx-qe-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--wpx-text);
    text-align: center;
    line-height: 1.3;
}

.wpx-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.wpx-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px 22px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius, 12px);
    text-decoration: none;
    color: var(--wpx-text);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.wpx-category-card:hover {
    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.15);
}

.wpx-category-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--wpx-primary);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(124, 58, 237, 0.06));
    transition: transform 0.3s ease;
}

.wpx-category-card:hover .wpx-category-card-icon {
    transform: scale(1.1);
}

.wpx-category-card-icon svg {
    width: 28px;
    height: 28px;
}

.wpx-category-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--wpx-text);
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.wpx-category-card:hover .wpx-category-card-name {
    color: var(--wpx-primary);
}

/* ========== 首页分类卡片弹幕滚动 ========== */
.wpx-category-marquee-section {
    padding: 14px 0;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--wpx-bg-light, #f8fafc);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.wpx-category-marquee-track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    animation: wpx-marquee-scroll 40s linear infinite;
    padding: 4px 0;
}

.wpx-category-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes wpx-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* 随机大小变化 - 模拟弹幕不规则效果 */
.wpx-cm-item {
    flex-shrink: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wpx-cm-sm {
    transform: scale(0.65);
    opacity: 0.6;
}

.wpx-cm-md {
    transform: scale(0.8);
    opacity: 0.75;
}

.wpx-cm-lg {
    transform: scale(1.0);
    opacity: 0.9;
}

.wpx-cm-xl {
    transform: scale(1.2);
    opacity: 1;
}

.wpx-cm-sm .wpx-category-card-icon { width: 30px; height: 30px; }
.wpx-cm-sm .wpx-category-card-icon svg { width: 18px; height: 18px; }
.wpx-cm-md .wpx-category-card-icon { width: 38px; height: 38px; }
.wpx-cm-md .wpx-category-card-icon svg { width: 22px; height: 22px; }
.wpx-cm-xl .wpx-category-card-icon { width: 54px; height: 54px; }
.wpx-cm-xl .wpx-category-card-icon svg { width: 32px; height: 32px; }

/* 悬停轨道时所有卡片恢复正常 */
.wpx-category-marquee-track:hover .wpx-cm-item {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .wpx-category-marquee-section {
        padding: 10px 0;
    }
    .wpx-category-marquee-track {
        gap: 10px;
        animation-duration: 30s;
    }
    .wpx-cm-sm { transform: scale(0.6); }
    .wpx-cm-md { transform: scale(0.75); }
    .wpx-cm-lg { transform: scale(0.9); }
    .wpx-cm-xl { transform: scale(1.05); }
    .wpx-cm-sm .wpx-category-card-icon { width: 24px; height: 24px; }
    .wpx-cm-sm .wpx-category-card-icon svg { width: 14px; height: 14px; }
    .wpx-cm-md .wpx-category-card-icon { width: 30px; height: 30px; }
    .wpx-cm-md .wpx-category-card-icon svg { width: 18px; height: 18px; }
    .wpx-cm-xl .wpx-category-card-icon { width: 44px; height: 44px; }
    .wpx-cm-xl .wpx-category-card-icon svg { width: 26px; height: 26px; }
}

.wpx-section {
    padding: 48px 0;
}

.wpx-section + .wpx-section {
    padding-top: 12px;
}

.wpx-section-light {
    background: transparent;
}

.wpx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    gap: 12px;
}

.wpx-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--wpx-primary), #7c3aed);
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.wpx-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.wpx-section-header .wpx-section-title {
    text-align: left !important;
    margin-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.wpx-section-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpx-section-title-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.wpx-section-title-icon svg {
    width: 28px;
    height: 28px;
}

.wpx-section-desc {
    text-align: center;
    color: var(--wpx-text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
}

.wpx-section-title:not(.wpx-section-header .wpx-section-title):not(#pricing .wpx-section-title)::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--wpx-primary), #7c3aed);
    border-radius: 2px;
    margin: 14px auto 0;
}

.wpx-section-action {
    text-align: center;
    margin-top: 40px;
}

.wpx-announcement-bar {
    padding: 0;
    margin-bottom: -30px;
}

/* 公告栏隐藏时，分类滚动条与最新更新之间的间距 */
.wpx-category-marquee-section + .wpx-section {
    padding-top: 16px;
}

.wpx-announcement-bar-inner {
    background: linear-gradient(135deg, #fefce8, #f0f9ff);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--wpx-radius);
    overflow: hidden;
}

.wpx-announcement-slider {
    position: relative;
    height: 42px;
    overflow: hidden;
}

.wpx-announcement-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wpx-announcement-item.active {
    opacity: 1;
    transform: translateY(0);
}

.wpx-announcement-item.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.wpx-announcement-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.wpx-announcement-icon svg {
    width: 18px;
    height: 18px;
}

.wpx-announcement-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 26px);
}

.wpx-announcement-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.wpx-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.wpx-feature-card {
    padding: 40px 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.wpx-feature-card:hover {
    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
}

.wpx-feature-icon {
    margin-bottom: 20px;
    color: var(--wpx-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(124, 58, 237, 0.06));
}

.wpx-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wpx-feature-card p {
    color: var(--wpx-text-secondary);
    font-size: 15px;
}

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

.wpx-product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.wpx-product-card:hover {
    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.15);
}

.wpx-product-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--wpx-bg-secondary);
}

.wpx-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--wpx-transition);
}

.wpx-product-card:hover .wpx-product-thumb img {
    transform: scale(1.03);
}

.wpx-product-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpx-product-detail-image .wpx-product-type-badge {
    font-size: 13px;
    padding: 6px 16px;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.5;
}

.wpx-product-info {
    padding: 20px;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.wpx-product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.wpx-product-title a {
    color: var(--wpx-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpx-product-title a:hover {
    color: var(--wpx-primary);
}

.wpx-product-excerpt {
    color: var(--wpx-text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpx-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wpx-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    text-shadow: 0 1px 2px rgba(239, 68, 68, 0.1);
}

.wpx-product-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--wpx-text-secondary);
}

.wpx-product-time svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wpx-member-free {
    font-size: 12px;
    color: var(--wpx-primary);
    font-weight: 600;
}

.wpx-archive-page {
    padding: 48px 24px;
}

.wpx-archive-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.wpx-category-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.wpx-cat-tab {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--wpx-border);
    border-radius: 20px;
    background: var(--wpx-bg);
    color: var(--wpx-text-secondary);
    cursor: pointer;
    transition: all var(--wpx-transition);
    font-family: var(--wpx-font);
}

.wpx-cat-tab:hover,
.wpx-cat-tab.active {
    background: var(--wpx-primary);
    color: #fff;
    border-color: var(--wpx-primary);
}

.wpx-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.wpx-pricing-grid-lg {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.wpx-pricing-card {
    position: relative;
    padding: 40px 28px;
    background: var(--wpx-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.wpx-pricing-card:hover {
    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.wpx-pricing-featured {
    border-color: var(--wpx-primary);
    box-shadow:
        0 0 0 1px var(--wpx-primary),
        0 8px 30px rgba(59, 130, 246, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.06);
    transform: scale(1.03);
}

.wpx-pricing-featured:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 0 1px var(--wpx-primary),
        0 12px 40px rgba(59, 130, 246, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.08);
}

.wpx-pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--wpx-primary);
    border-radius: 20px;
}

.wpx-pricing-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--wpx-text), #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-pricing-price {
    margin-bottom: 8px;
}

.wpx-pricing-currency {
    font-size: 24px;
    font-weight: 600;
    vertical-align: top;
}

.wpx-pricing-amount {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--wpx-text), #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-pricing-desc {
    color: var(--wpx-text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.wpx-pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.wpx-pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--wpx-text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.2s ease;
}

.wpx-pricing-features li:hover {
    color: var(--wpx-text);
}

.wpx-pricing-features li::before {
    content: "�?;
    color: var(--wpx-primary);
    font-weight: 700;
    margin-right: 8px;
}

.wpx-member-faq {
    max-width: 800px;
    margin: 80px auto;
    padding-bottom: 40px;
}

.wpx-member-faq h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--wpx-text), #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wpx-faq-item {
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.wpx-faq-item:hover {
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.wpx-faq-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wpx-faq-item p {
    font-size: 14px;
    color: var(--wpx-text-secondary);
}

.wpx-page-content {
    padding: 48px 24px;
}

.wpx-single-article {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.wpx-single-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--wpx-text, #1a1a2e);
}

.wpx-single-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--wpx-muted, #999);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wpx-border, #eee);
}

.wpx-single-thumb {
    margin-bottom: 24px;
    border-radius: var(--wpx-radius);
    overflow: hidden;
}

.wpx-single-thumb img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.wpx-single-content {
    line-height: 1.8;
    overflow: hidden;
    word-wrap: break-word;
    font-size: 16px;
    color: var(--wpx-text, #333);
}

.wpx-single-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--wpx-border, #eee);
}

.wpx-single-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.wpx-single-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px;
}

.wpx-single-content p {
    margin-bottom: 16px;
}

.wpx-single-content ul,
.wpx-single-content ol {
    margin: 0 0 16px 20px;
    padding: 0;
}

.wpx-single-content li {
    margin-bottom: 6px;
}

.wpx-single-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 4px solid var(--wpx-primary);
    background: var(--wpx-bg, #f8f9fa);
    border-radius: 0 var(--wpx-radius) var(--wpx-radius) 0;
}

.wpx-single-content pre {
    margin: 16px 0;
    padding: 16px;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: var(--wpx-radius);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.wpx-single-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: var(--wpx-bg, #f0f0f0);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.wpx-single-content pre code {
    background: none;
    padding: 0;
}

.wpx-single-content a {
    color: var(--wpx-primary);
    text-decoration: underline;
}

.wpx-single-content a:hover {
    color: var(--wpx-primary-dark, #2563eb);
}

.wpx-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.wpx-single-content th,
.wpx-single-content td {
    border: 1px solid var(--wpx-border, #eee);
    padding: 10px 14px;
    text-align: left;
}

.wpx-single-content th {
    background: var(--wpx-bg, #f8f9fa);
    font-weight: 600;
}

.wpx-single-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.wpx-search-header .wpx-section-header {
    margin-bottom: 0;
}

.wpx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wp-pagenavi,
.pagination,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.wpx-pagination .page-numbers,
.nav-links .page-numbers,
.wp-pagenavi a,
.wp-pagenavi span,
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wpx-text-secondary);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    text-decoration: none;
    transition: all 0.25s ease;
}

.wpx-pagination .page-numbers:hover,
.nav-links .page-numbers:hover,
.wp-pagenavi a:hover,
.pagination .page-numbers:not(.current):hover {
    color: var(--wpx-primary);
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--wpx-primary-light);
    transform: translateY(-1px);
}

.wpx-pagination .page-numbers.current,
.nav-links .page-numbers.current,
.wp-pagenavi span.current,
.pagination .page-numbers.current {
    color: #fff;
    background: linear-gradient(135deg, var(--wpx-primary), #7c3aed);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.wpx-pagination .page-numbers.prev,
.wpx-pagination .page-numbers.next,
.nav-links .page-numbers.prev,
.nav-links .page-numbers.next,
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
    font-size: 13px;
}

.wpx-pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 8px;
}

.wpx-empty {
    text-align: center;
    color: var(--wpx-text-muted);
    padding: 60px 0;
    font-size: 15px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
}

.wpx-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wpx-post-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.wpx-post-card:hover {
    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
}

.wpx-post-thumb {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.wpx-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpx-post-info {
    padding: 20px;
}

.wpx-post-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wpx-post-title a {
    color: var(--wpx-text);
}

.wpx-post-excerpt {
    color: var(--wpx-text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.wpx-post-meta {
    font-size: 13px;
    color: var(--wpx-text-muted);
}

.wpx-product-detail {
    padding: 10px 24px;
    overflow-x: hidden;
}

/* 普通文章页顶部间距 */
.wpx-article-detail {
    padding-top: 10px;
}

/* 普通文章页：桌面端隐藏侧边栏，单栏居中布局 */
.wpx-article-detail .wpx-product-detail-sidebar {
    display: none;
}
.wpx-article-detail .wpx-product-detail-grid {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}
.wpx-article-detail .wpx-product-detail-main {
    max-width: none;
    width: 100%;
}
.wpx-article-detail .wpx-product-detail-header-card,
.wpx-article-detail .wpx-product-detail-body-card {
    margin-bottom: 24px;
}

.wpx-product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    overflow: hidden;
    align-items: start;
}

.wpx-product-detail-main {
    min-width: 0;
    overflow: hidden;
}

.wpx-product-detail-body {
    min-width: 0;
    overflow: hidden;
}

.wpx-product-detail-image {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 320px;
}

.wpx-product-detail-image img {
    display: none;
}

.wpx-product-detail-header-card {
    border: 2px solid transparent;
    border-radius: var(--wpx-radius);
    background:
        linear-gradient(var(--wpx-bg), var(--wpx-bg)) padding-box,
        linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 32px;
}

.wpx-product-detail-header-info {
    padding: 24px 28px 20px;
}

.wpx-product-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--wpx-text), #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-product-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpx-product-detail-hint {
    font-size: 14px;
    color: var(--wpx-text-secondary);
}

.wpx-product-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--wpx-border);
}

.wpx-product-detail-actions .wpx-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.wpx-fav-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wpx-bg);
    border: 2px solid var(--wpx-border);
    border-radius: var(--wpx-radius);
    cursor: pointer;
    color: var(--wpx-text-muted);
    transition: all var(--wpx-transition);
    padding: 0;
}

.wpx-fav-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.wpx-fav-btn-active {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #f59e0b;
}

.wpx-fav-btn-active svg {
    fill: #f59e0b;
    stroke: #f59e0b;
}

.wpx-product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #ef4444;
}

.wpx-member-free-badge {
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--wpx-primary);
    border-radius: 20px;
}

.wpx-product-detail-body-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius, 12px);
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.wpx-product-detail-content-header {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--wpx-primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 20px 32px 16px;
    border-bottom: 1px solid var(--wpx-border);
}

.wpx-product-detail-content {
    line-height: 1.8;
    color: var(--wpx-text);
    padding: 32px;
    overflow: hidden;
    word-wrap: break-word;
}

.wpx-product-detail-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.wpx-product-detail-content h2,
.wpx-product-detail-content h3 {
    margin: 24px 0 12px;
    font-weight: 600;
}

.wpx-product-detail-content p {
    margin-bottom: 16px;
}

.wpx-download-section {
    margin-top: 24px;
    padding: 24px 32px;
    border-top: 1px solid var(--wpx-border);
}

.wpx-article-copyright {
    margin: 24px 32px;
    padding: 16px 20px !important;
    background: #f8fafc;
    border-radius: var(--wpx-radius);
    font-size: 13px;
    color: var(--wpx-text-muted);
    text-align: left !important;
    text-indent: 0 !important;
    padding-left: 20px !important;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}
.wpx-article-copyright * {
    text-align: left !important;
}

.wpx-product-sidebar-card {
    background: var(--wpx-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.wpx-product-price-box {
    padding: 28px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.wpx-price-tag {
    font-size: 32px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 16px;
    text-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);
}

.wpx-price-free {
    font-size: 28px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
}

.wpx-price-owned {
    font-size: 18px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 12px;
}

.wpx-price-desc {
    color: var(--wpx-text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.wpx-product-sidebar-info {
    padding: 24px;
}

.wpx-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.wpx-info-item:hover {
    background: rgba(59, 130, 246, 0.02);
}

.wpx-info-item:last-child {
    border-bottom: none;
}

.wpx-info-label {
    font-size: 14px;
    color: var(--wpx-text-muted);
}

.wpx-info-value {
    font-size: 14px;
    font-weight: 500;
}

.wpx-restricted-content {
    margin-top: 20px;
}

.wpx-restricted-notice {
    padding: 32px;
    background: linear-gradient(135deg, #fefce8, #fff7ed);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--wpx-radius);
    text-align: center;
    margin-top: 20px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(245, 158, 11, 0.06);
}

.wpx-restricted-notice p {
    color: var(--wpx-text-secondary);
    margin-bottom: 20px;
}

.wpx-restricted-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wpx-price {
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
}

.wpx-page-header {
    text-align: center;
    padding: 48px 0 32px;
}

.wpx-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--wpx-text), #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-page-header p {
    color: var(--wpx-text-secondary);
    font-size: 16px;
}

.wpx-auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px - 200px);
    padding: 60px 24px;
}

.wpx-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--wpx-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(59, 130, 246, 0.06);
}

.wpx-auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--wpx-text), #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--wpx-text-secondary);
}

.wpx-oauth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 16px;
    color: var(--wpx-text-muted);
    font-size: 13px;
}

.wpx-oauth-divider::before,
.wpx-oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.wpx-oauth-buttons {
    display: flex;
    gap: 12px;
}

.wpx-oauth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--wpx-text);
}

.wpx-oauth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.wpx-oauth-btn-qq:hover { border-color: #12B7F5; color: #12B7F5; }
.wpx-oauth-btn-wx:hover { border-color: #07C160; color: #07C160; }

.wpx-oauth-label {
    line-height: 1;
}

.wpx-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.wpx-form-group input[type="text"],
.wpx-form-group input[type="email"],
.wpx-form-group input[type="password"],
.wpx-form-group input[type="url"],
.wpx-form-group input[type="number"],
.wpx-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid var(--wpx-border);
    border-radius: var(--wpx-radius);
    background: var(--wpx-bg);
    color: var(--wpx-text);
    transition: border-color var(--wpx-transition), box-shadow var(--wpx-transition);
    font-family: var(--wpx-font);
    outline: none;
}

.wpx-form-group input:focus,
.wpx-form-group textarea:focus {
    border-color: var(--wpx-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wpx-form-group input:disabled {
    background: var(--wpx-bg-secondary);
    color: var(--wpx-text-muted);
}

.wpx-form-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.wpx-form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--wpx-primary);
}

.wpx-message {
    padding: 12px 16px;
    border-radius: var(--wpx-radius);
    font-size: 14px;
    font-weight: 500;
}

.wpx-message-success {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08);
}

.wpx-message-error {
    background: linear-gradient(135deg, #fef2f2, #fef2f2);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.08);
}

.wpx-loading {
    text-align: center;
    padding: 40px;
    color: var(--wpx-text-muted);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
}

.wpx-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.wpx-toast.show {
    opacity: 1;
}

.wpx-user-center {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 40px 24px;
    min-height: calc(100vh - 64px);
    align-items: start;
}

.wpx-user-sidebar {
    padding: 24px 20px;
    background: var(--wpx-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    height: fit-content;
    position: sticky;
    top: 88px;
}

.wpx-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wpx-user-avatar {
    flex-shrink: 0;
}

.wpx-user-avatar img {
    border-radius: 50%;
    border: 2px solid var(--wpx-border);
    display: block;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* 用户中心内所有头像统一裁剪 */
.wpx-user-center img.avatar,
.wpx-user-center .wpx-header-avatar {
    object-fit: cover !important;
    object-position: center !important;
}

/* 侧边栏头像悬停更换提示 */
.wpx-avatar-edit-hint {
    display:none;
    position:absolute;
    bottom:0;left:0;right:0;
    background:rgba(0,0,0,0.6);
    color:#fff;
    font-size:11px;
    text-align:center;
    padding:3px 0;
    border-radius:0 0 50% 50%;
    cursor:pointer;
}
#wpx-sidebar-avatar:hover .wpx-avatar-edit-hint {
    display:block;
}

/* 个人资料页头像上传区域 */
.wpx-avatar-upload-group {
    text-align:center;
}
.wpx-avatar-upload-area {
    display:inline-flex;
    align-items:flex-start;
    gap:20px;
    padding:16px;
    background:#f8fafc;
    border-radius:12px;
    border:1px dashed var(--wpx-border);
}
.wpx-avatar-preview-wrap {
    flex-shrink:0;
}
.wpx-avatar-preview-wrap img {
    width:100px!important;height:100px!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:50%;
    border:2px solid var(--wpx-border, #e5e7eb);
}
.wpx-avatar-upload-btn {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    padding-top:28px;
}
.wpx-avatar-hint {
    font-size:12px;
    color:#9ca3af;
}

.wpx-user-meta {
    min-width: 0;
}

.wpx-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--wpx-text);
    line-height: 1.3;
}

.wpx-user-meta .wpx-member-badge {
    display: inline-flex;
    margin-top: 2px;
}

.wpx-user-sidebar .wpx-member-badge {
    display: inline-flex;
    margin: 2px 0 0 0;
}

.wpx-user-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 18px;
}

.wpx-user-nav-item {
    display: block;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wpx-text-secondary);
    border-radius: var(--wpx-radius);
    transition: all var(--wpx-transition);
}

.wpx-user-nav-item:hover,
.wpx-user-nav-item.active {
    color: var(--wpx-primary);
    background: var(--wpx-primary-light);
}

.wpx-logout-link {
    margin-top: 8px;
    color: #ef4444 !important;
}

.wpx-logout-link:hover {
    background: #fef2f2 !important;
}

.wpx-user-content {
    min-width: 0;
}

.wpx-user-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--wpx-text), #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-user-table-wrap {
    overflow-x: auto;
}

.wpx-user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.wpx-user-table th {
    font-weight: 600;
    color: var(--wpx-text-secondary);
    background: var(--wpx-bg-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.wpx-status-pending {
    color: #f59e0b;
    font-weight: 500;
}

.wpx-status-completed {
    color: #10b981;
    font-weight: 500;
}

.wpx-status-cancelled,
.wpx-status-failed {
    color: #ef4444;
    font-weight: 500;
}

.wpx-member-status-card {
    padding: 28px 32px;
    background: var(--wpx-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.wpx-member-status-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wpx-border);
}

.wpx-member-status-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.wpx-member-status-text h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 3px;
}

.wpx-member-status-text p {
    font-size: 13px;
    color: var(--wpx-text-secondary);
}

.wpx-member-status-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wpx-member-stat {
    text-align: center;
    padding: 16px;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    border-radius: var(--wpx-radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.wpx-member-stat:hover {
    transform: translateY(-2px);
}

.wpx-member-stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

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

.wpx-affiliate-card {
    padding: 32px;
    background: var(--wpx-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.wpx-affiliate-url-box {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.wpx-affiliate-url-box input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--wpx-border);
    border-radius: var(--wpx-radius);
    background: var(--wpx-bg-secondary);
    font-family: monospace;
}

.wpx-affiliate-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.wpx-affiliate-stats .wpx-member-stat {
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.wpx-footer {
    padding: 60px 0 30px;
    background: var(--wpx-bg-dark);
    color: #d1d5db;
    position: relative;
}

.wpx-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.wpx-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.wpx-footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.wpx-footer-desc {
    font-size: 14px;
    line-height: 1.7;
}

.wpx-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpx-footer-links a,
.wpx-footer-contact {
    font-size: 14px;
    color: #9ca3af;
    transition: color var(--wpx-transition);
}

.wpx-footer-links a:hover {
    color: #fff;
}

.wpx-footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpx-footer-qr {
    margin-top: 12px;
}

.wpx-footer-qr img {
    width: 100px;
    height: auto;
    border-radius: 6px;
    border: 2px solid #374151;
}

.wpx-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.wpx-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px - 200px);
    text-align: center;
}

.wpx-404-title {
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    color: var(--wpx-border);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpx-404-desc {
    font-size: 18px;
    color: var(--wpx-text-secondary);
    margin-bottom: 32px;
}

.wpx-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;
}

.hide {
    display: none !important;
}

@media (max-width: 1024px) {
    .wpx-products-grid,
    .wpx-pricing-grid,
    .wpx-features-grid,
    .wpx-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpx-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wpx-product-detail-grid {
        grid-template-columns: 1fr;
    }

    .wpx-product-detail-main {
        min-width: 0;
        overflow: hidden;
    }

    .wpx-product-detail-image {
        height: 220px;
    }

    .wpx-product-detail-title {
        font-size: 24px;
    }

    .wpx-product-detail-header-info {
        padding: 20px 24px 18px;
    }

    .wpx-footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .wpx-section {
        padding: 10px 0;
    }

    .wpx-section + .wpx-section {
        padding-top: 10px;
    }

    .wpx-section-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .wpx-announcement-bar {
        margin-bottom: 0;
    }

    .wpx-section-header .wpx-section-title {
        font-size: 22px !important;
    }

    .wpx-section-title-icon svg {
        width: 20px;
        height: 20px;
    }

    .wpx-section-badge {
        font-size: 12px;
        padding: 4px 12px;
    }

    .wpx-nav {
        display: none;
    }

    .wpx-header-nav-btns {
        display: none;
    }

    .wpx-mobile-toggle {
        display: flex;
    }

    .wpx-header-actions .wpx-btn {
        display: none;
    }

    .wpx-header-actions .wpx-user-menu {
        display: none;
    }

    .wpx-mobile-cloned-actions .wpx-btn {
        display: inline-flex;
    }

    .wpx-mobile-cloned-actions .wpx-header-user-link {
        display: flex;
    }

    .wpx-header-actions {
        gap: 4px;
    }

    .wpx-products-grid,
    .wpx-pricing-grid,
    .wpx-features-grid,
    .wpx-posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wpx-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wpx-archive-page {
        padding: 24px 16px;
    }

    .wpx-archive-title {
        font-size: 20px;
    }

    .wpx-category-card {
        padding: 20px 10px 16px;
        gap: 8px;
    }

    .wpx-category-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .wpx-category-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .wpx-category-card-name {
        font-size: 12px;
    }

    .wpx-product-card {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 12px;
        background: #fff;
    }

    .wpx-product-thumb {
        flex-shrink: 0;
        width: 110px;
        aspect-ratio: auto;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
    }

    .wpx-product-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .wpx-product-info {
        flex: 1;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .wpx-product-title {
        font-size: 14px;
        margin-bottom: 4px;
        line-height: 1.4;
        font-weight: 600;
    }

    .wpx-product-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--wpx-text);
    }

    .wpx-product-excerpt {
        font-size: 12px;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
        color: var(--wpx-text-secondary);
        line-height: 1.4;
    }

    .wpx-product-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: auto;
    }

    .wpx-product-time {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        color: var(--wpx-text-secondary);
    }

    .wpx-product-time svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        color: #ef4444;
    }

    .wpx-product-price {
        font-size: 18px;
        white-space: nowrap;
        font-weight: 700;
    }

    .wpx-pricing-featured {
        transform: none;
    }

    .wpx-pricing-featured:hover {
        transform: none;
    }

    .wpx-user-center {
        grid-template-columns: 1fr;
    }

    .wpx-user-sidebar {
        position: static;
        padding: 20px 16px;
    }

    .wpx-user-info {
        justify-content: center;
        gap: 10px;
        margin-bottom: 16px;
    }

    .wpx-user-meta {
        text-align: center;
    }

    .wpx-user-avatar img {
        width: 40px !important;
        height: 40px !important;
    }

    .wpx-avatar-upload-area {
        flex-direction:column;
        align-items:center;
        gap:12px;
    }
    .wpx-avatar-preview-wrap img {
        width:80px;height:80px;
    }
    .wpx-avatar-upload-btn {
        padding-top:0;
        align-items:center;
    }

    .wpx-user-name {
        font-size: 14px;
    }

    .wpx-user-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 14px;
    }

    .wpx-user-nav-item {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1 1 auto;
        text-align: center;
        min-width: calc(50% - 3px);
    }

    .wpx-logout-link {
        margin-top: 4px;
        width: 100%;
        flex: none;
    }

    .wpx-member-status-detail,
    .wpx-affiliate-stats {
        grid-template-columns: 1fr;
    }

    .wpx-faq-grid {
        grid-template-columns: 1fr;
    }

    .wpx-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wpx-hero-title {
        font-size: 22px;
    }

    .wpx-hero-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .wpx-hero-search-input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .wpx-hero-search-btn {
        padding: 12px 16px;
    }

    .wpx-section-title {
        font-size: 26px;
    }

    .wpx-qe-section {
        display: block;
        padding: 0 0 6px;
        position: relative;
        z-index: 2;
        margin-top: -20px;
    }

    .wpx-qe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .wpx-qe-card {
        padding: 14px 8px 12px;
    }

    .wpx-qe-card-name {
        font-size: 12px;
    }

    .wpx-product-detail {
        padding-top: 10px;
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    .wpx-article-detail {
        padding-top: 10px;
    }

    .wpx-product-detail-grid {
        grid-template-columns: 1fr;
        min-width: 0;
        overflow: hidden;
    }

    .wpx-article-detail .wpx-product-detail-grid {
        display: block;
        max-width: 100%;
        margin: 0;
    }

    .wpx-product-detail-main {
        min-width: 0;
        overflow: hidden;
    }

    .wpx-product-detail-header-card {
        margin-bottom: 10px;
        border: 2px solid transparent;
        border-radius: var(--wpx-radius);
        background:
            linear-gradient(var(--wpx-bg), var(--wpx-bg)) padding-box,
            linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
        overflow: hidden;
    }

    .wpx-product-detail-image {
        overflow: hidden;
        height: 170px;
    }

    .wpx-product-type-badge {
        font-size: 10px;
        padding: 3px 8px;
        bottom: 6px;
        left: 6px;
    }

    .wpx-product-detail-header-info {
        padding: 18px 18px 16px;
    }

    .wpx-product-detail-title {
        font-size: 19px;
        margin-bottom: 12px;
        letter-spacing: -0.01em;
    }

    .wpx-product-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wpx-product-detail-hint {
        font-size: 13px;
    }

    .wpx-product-detail-price {
        font-size: 24px;
    }

    .wpx-product-detail-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
    }

    .wpx-product-detail-actions .wpx-btn {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        height: 42px;
        font-size: 14px;
    }

    .wpx-product-detail-actions .wpx-fav-btn {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .wpx-product-detail-body-card {
        border-radius: var(--wpx-radius);
        margin-bottom: 20px;
    }

    .wpx-product-detail-content-header {
        font-size: 16px;
        padding: 14px 18px 12px;
    }

    .wpx-product-detail-content {
        padding: 20px 18px;
        font-size: 15px;
        line-height: 1.75;
        overflow: hidden;
        word-wrap: break-word;
    }

    .wpx-product-detail-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .wpx-product-detail-content h2,
    .wpx-product-detail-content h3 {
        font-size: 17px !important;
        margin-top: 22px !important;
        margin-bottom: 10px !important;
    }

    .wpx-product-detail-content p {
        font-size: 15px !important;
        margin-bottom: 14px !important;
        line-height: 1.75 !important;
    }

    .wpx-download-section {
        margin-top: 20px;
        padding-top: 16px;
    }

    /* 文章页：移动端隐藏侧边栏 */
    .wpx-article-detail .wpx-product-detail-sidebar {
        display: none;
    }

    .wpx-article-detail .wpx-product-detail-body-card {
        border-radius: var(--wpx-radius);
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .wpx-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .wpx-product-detail {
        padding-top: 10px;
    }

    .wpx-auth-card {
        padding: 28px 20px;
    }

    .wpx-single-title {
        font-size: 22px;
    }

    .wpx-single-article {
        overflow: hidden;
    }

    .wpx-single-content h2 {
        font-size: 18px;
    }

    .wpx-single-thumb {
        margin-bottom: 16px;
    }

    .wpx-single-thumb img {
        width: 100% !important;
        height: auto !important;
    }

    .wpx-single-content {
        font-size: 15px;
        line-height: 1.75;
        overflow: hidden;
    }

    .wpx-single-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .wpx-page-content {
        padding: 24px 16px;
    }
}

.wpx-pay-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
}

.wpx-pay-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: var(--wpx-radius);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 12px 48px rgba(59, 130, 246, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 100001;
    width: 360px;
    max-width: 90vw;
}

.wpx-pay-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.wpx-pay-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--wpx-text);
}

.wpx-pay-modal-close {
    font-size: 24px;
    color: var(--wpx-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color var(--wpx-transition);
}

.wpx-pay-modal-close:hover {
    color: var(--wpx-text);
}

.wpx-pay-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpx-pay-method-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpx-radius);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 15px;
    font-weight: 500;
    color: var(--wpx-text);
}

.wpx-pay-method-btn:hover {
    border-color: var(--wpx-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(124, 58, 237, 0.03));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.wpx-pay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.wpx-pay-icon img {
    display: block;
    width: 32px;
    height: 32px;
}

.wpx-pay-icon-alipay {
}

.wpx-pay-icon-wxpay {
}

.wpx-pay-icon-cardpay {
}

.wpx-cardpay-input-area {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.wpx-cardpay-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.wpx-cardpay-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid var(--wpx-border);
    border-radius: var(--wpx-radius);
    font-size: 16px;
    letter-spacing: 4px;
    text-align: center;
    outline: none;
    transition: border-color var(--wpx-transition);
}

.wpx-cardpay-input:focus {
    border-color: var(--wpx-primary);
}

.wpx-cardpay-submit {
    white-space: nowrap;
    padding: 12px 24px;
}

.wpx-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--wpx-border);
    z-index: 999;
    padding: 6px 0;
    padding-bottom: max(env(safe-area-inset-bottom), 6px);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.wpx-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    color: var(--wpx-text-muted);
    font-size: 12px;
    padding: 5px 2px;
    transition: color var(--wpx-transition);
}

.wpx-tabbar-item.active {
    color: var(--wpx-primary);
}

.wpx-tabbar-item.active .wpx-tabbar-icon {
    transform: scale(1.1);
}

.wpx-tabbar-icon {
    display: flex;
    width: 26px;
    height: 26px;
    transition: transform 0.2s ease;
}

.wpx-tabbar-icon svg {
    width: 26px;
    height: 26px;
}

.wpx-tabbar-label {
    line-height: 1;
}

@media (max-width: 768px) {
    .wpx-tabbar {
        display: flex;
    }

    .wpx-footer {
        padding-bottom: 76px;
    }

    body {
        padding-bottom: 62px;
    }
}
