/* 付费内容插件 - 前端样式 */

/* 移动端基础设置 */
html {
    margin-top: 0 !important;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.admin-bar {
    margin-top: 0 !important;
}

/* 隐藏WordPress默认元素 */
#wpadminbar {
    display: none !important;
}

/* 移动端触摸优化 */
a, button, input, textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* 禁止文本选择（可选） */
.fpc-bottom-nav,
.fpc-top-bar,
.fpc-tabs {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 隐藏WordPress默认header */
#masthead,
.site-header,
header.site-header,
.header,
#header {
    display: none !important;
}

/* 隐藏WordPress默认footer和版权信息 */
#colophon,
.site-footer,
footer.site-footer,
.footer,
#footer,
.site-info,
.footer-credits,
.powered-by,
.wp-block-site-title {
    display: none !important;
}

/* 隐藏所有hr分割线 */
hr {
    display: none !important;
}

/* 隐藏所有可能的顶部边框 */
.fpc-home-page,
.fpc-history-page,
.fpc-user-center-page {
    border-top: none !important;
}

body.page .fpc-home-page,
body.page .fpc-history-page,
body.page .fpc-user-center-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 隐藏主题可能添加的顶部边框 */
.site-content,
#content,
.content-area,
main {
    border-top: none !important;
}

/* 隐藏WordPress默认footer */
#colophon,
.site-footer,
footer.site-footer {
    display: none !important;
}

/* 重置WordPress默认样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 通用样式 */
* {
    box-sizing: border-box;
}

.fpc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 首页样式 */
.fpc-home-page {
    min-height: 100vh;
    background: #f5f5f5;
}

.fpc-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.fpc-header .fpc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpc-logo {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    letter-spacing: -0.5px;
}

.fpc-nav {
    display: flex;
    gap: 10px;
}

.fpc-nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.fpc-nav-link:hover {
    background: #f0f0f0;
    color: #007bff;
}

.fpc-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fpc-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.fpc-banner h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.fpc-banner p {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.fpc-section {
    padding: 60px 0;
}

.fpc-section-gray {
    background: #fff;
}

.fpc-section-title {
    font-size: 32px;
    margin: 0 0 40px 0;
    text-align: center;
    font-weight: 700;
    color: #2c3e50;
}

.fpc-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.fpc-author-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.fpc-author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.fpc-author-avatar {
    margin-bottom: 15px;
}

.fpc-author-avatar img {
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.fpc-author-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.fpc-author-stats {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.fpc-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fpc-article-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.fpc-article-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.fpc-article-content {
    flex: 1;
}

.fpc-article-content h3 {
    margin: 0 0 10px 0;
    font-size: 19px;
    font-weight: 600;
}

.fpc-article-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.fpc-article-content h3 a:hover {
    color: #007bff;
}

.fpc-article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.fpc-article-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.fpc-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.fpc-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
    opacity: 0.3;
}

.fpc-cta-section h2 {
    font-size: 36px;
    margin: 0 0 15px 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.fpc-cta-section p {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.fpc-footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.fpc-footer p {
    margin: 0;
    opacity: 0.8;
}

/* 认证页面 */
.fpc-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.fpc-auth-container {
    width: 100%;
    max-width: 420px;
}

.fpc-auth-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.fpc-auth-box h2 {
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.fpc-auth-links {
    margin-top: 25px;
    text-align: center;
}

.fpc-auth-links p {
    margin: 10px 0;
    color: #666;
}

.fpc-auth-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.fpc-auth-links a:hover {
    text-decoration: underline;
}

/* 申请作者页面 */
.fpc-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 60px 0;
}

.fpc-apply-author-page h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
}

.fpc-apply-intro {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fpc-apply-intro h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.fpc-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.fpc-benefit-item {
    text-align: center;
    padding: 20px;
}

.fpc-benefit-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.fpc-benefit-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.fpc-benefit-item p {
    color: #666;
    margin: 0;
}

.fpc-apply-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fpc-apply-form-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* 用户中心 */
.fpc-user-center {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 60px 0;
}

.fpc-user-header {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fpc-user-avatar img {
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.fpc-user-info {
    flex: 1;
}

.fpc-user-info h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
}

.fpc-user-info p {
    margin: 5px 0;
    color: #666;
}

.fpc-section {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fpc-section h2 {
    font-size: 22px;
    margin: 0 0 25px 0;
    font-weight: 700;
    color: #2c3e50;
}

.fpc-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.fpc-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.fpc-user-package-card {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.fpc-user-package-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.fpc-package-header {
    margin-bottom: 20px;
}

.fpc-package-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.fpc-package-author {
    color: #666;
    font-size: 14px;
}

.fpc-package-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.fpc-stat {
    flex: 1;
}

.fpc-stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fpc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

.fpc-purchases-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fpc-purchase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fpc-purchase-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.fpc-purchase-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.fpc-purchase-info h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.fpc-purchase-info h4 a:hover {
    color: #007bff;
}

.fpc-purchase-date {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.fpc-orders-table-container {
    overflow-x: auto;
}

.fpc-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.fpc-orders-table thead {
    background: #f8f9fa;
}

.fpc-orders-table th,
.fpc-orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.fpc-orders-table th {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fpc-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.fpc-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.fpc-status-pending {
    background: #fff3cd;
    color: #856404;
}

.fpc-status-success {
    background: #d4edda;
    color: #155724;
}

.fpc-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* 表单样式 */
.fpc-form {
    width: 100%;
}

.fpc-form-group {
    margin-bottom: 25px;
}

.fpc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.fpc-form-group small {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
}

.fpc-input,
.fpc-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.fpc-input:focus,
.fpc-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.fpc-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 按钮样式 */
.fpc-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.fpc-btn-primary {
    background: #007bff;
    color: #fff;
}

.fpc-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.fpc-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.fpc-btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.fpc-btn-block {
    display: block;
    width: 100%;
}

/* 消息提示 */
.fpc-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid;
}

.fpc-message h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.fpc-message p {
    margin: 5px 0;
}

.fpc-message-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.fpc-message-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.fpc-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* 付费墙样式 - 简化版 */
.fpc-paywall {
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}

.fpc-paywall-text {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.fpc-paywall-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fpc-price {
    font-size: 20px;
    font-weight: 600;
    color: #ff4444;
}

.fpc-btn-purchase {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.fpc-btn-purchase:hover {
    background: #0056b3;
}

.fpc-btn-purchase:active {
    transform: scale(0.98);
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    /* 全局容器 */
    .fpc-container {
        padding: 0 12px;
    }
    
    /* Banner区域 */
    .fpc-banner {
        padding: 40px 0;
    }
    
    .fpc-banner h1 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .fpc-banner p {
        font-size: 14px;
    }
    
    /* 区块间距 */
    .fpc-section {
        padding: 30px 0;
    }
    
    .fpc-section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* 作者网格 */
    .fpc-authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .fpc-author-card {
        padding: 15px;
        border-radius: 8px;
    }
    
    .fpc-author-card h3 {
        font-size: 15px;
    }
    
    .fpc-author-stats {
        font-size: 12px;
    }
    
    /* 文章列表 */
    .fpc-article-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        border-radius: 8px;
    }
    
    .fpc-article-content h3 {
        font-size: 16px;
    }
    
    .fpc-article-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .fpc-article-item .fpc-btn {
        margin-top: 12px;
        width: 100%;
    }
    
    /* 用户中心 */
    .fpc-user-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .fpc-user-info h2 {
        font-size: 20px;
    }
    
    /* 套餐网格 */
    .fpc-packages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fpc-user-package-card {
        padding: 15px;
    }
    
    /* 购买记录 */
    .fpc-purchase-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .fpc-purchase-item .fpc-btn {
        margin-top: 10px;
        width: 100%;
    }
    
    /* 认证页面 */
    .fpc-auth-box {
        padding: 25px 20px;
    }
    
    .fpc-auth-box h2 {
        font-size: 22px;
    }
    
    /* 付费墙 */
    .fpc-paywall {
        padding: 15px;
        margin: 20px 0;
    }
    
    .fpc-paywall-text {
        font-size: 13px;
    }
    
    .fpc-paywall-action {
        flex-direction: column;
        gap: 10px;
    }
    
    .fpc-price {
        font-size: 18px;
    }
    
    .fpc-btn-purchase {
        width: 100%;
        padding: 12px 20px;
    }
    
    /* 表单元素 */
    .fpc-input,
    .fpc-textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 12px;
    }
    
    .fpc-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .fpc-btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    /* 订单表格 */
    .fpc-orders-table {
        font-size: 13px;
    }
    
    .fpc-orders-table th,
    .fpc-orders-table td {
        padding: 10px 8px;
    }
    
    /* 移动端底部导航留出空间 */
    .fpc-home-page,
    .fpc-user-center,
    .fpc-history-page,
    .fpc-author-profile-page,
    .fpc-author-center-page,
    .fpc-article-detail-page {
        padding-bottom: 70px;
    }
    
    /* 顶部固定栏留出空间 */
    .fpc-home-page {
        padding-top: 50px;
    }
    
    /* CTA区域 */
    .fpc-cta-section {
        padding: 40px 0;
    }
    
    .fpc-cta-section h2 {
        font-size: 24px;
    }
    
    .fpc-cta-section p {
        font-size: 15px;
    }
}

/* 底部导航栏 */
.fpc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 8px 0;
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
    height: 60px;
    /* iOS安全区域适配 */
    padding-bottom: env(safe-area-inset-bottom);
}

.fpc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 100px;
    position: relative;
}

.fpc-nav-item:active {
    transform: scale(0.95);
}

.fpc-nav-item:hover {
    color: #007bff;
}

.fpc-nav-item.active {
    color: #007bff;
}

.fpc-nav-icon {
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpc-nav-icon svg {
    width: 24px;
    height: 24px;
}

.fpc-nav-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

/* 历史记录页面 */
.fpc-history-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 40px 0 80px 0;
}

.fpc-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.fpc-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.fpc-page-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.fpc-history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fpc-history-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.fpc-history-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.fpc-history-content {
    flex: 1;
}

.fpc-history-badge {
    margin-bottom: 10px;
}

.fpc-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.fpc-badge-package {
    background: #e3f2fd;
    color: #1976d2;
}

.fpc-badge-single {
    background: #f3e5f5;
    color: #7b1fa2;
}

.fpc-history-content h3 {
    margin: 0 0 10px 0;
    font-size: 19px;
    font-weight: 600;
}

.fpc-history-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.fpc-history-content h3 a:hover {
    color: #007bff;
}

.fpc-history-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.fpc-history-content p {
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.fpc-viewed-time {
    margin-top: 10px;
}

.fpc-viewed-time small {
    color: #999;
    font-size: 12px;
}

.fpc-history-action {
    margin-left: 20px;
}

.fpc-empty-icon {
    margin-bottom: 20px;
    color: #ccc;
}

.fpc-empty-icon svg {
    width: 80px;
    height: 80px;
}

.fpc-empty-state h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.fpc-empty-state p {
    color: #999;
    margin: 0 0 30px 0;
}

/* 桌面端底部导航隐藏 */
@media (min-width: 769px) {
    .fpc-bottom-nav {
        display: none;
    }
    
    .fpc-home-page,
    .fpc-user-center,
    .fpc-history-page {
        padding-bottom: 0;
    }
}

/* 移动端历史记录优化 */
@media (max-width: 768px) {
    .fpc-history-item {
        flex-direction: column;
        padding: 20px;
    }
    
    .fpc-history-action {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .fpc-history-action .fpc-btn {
        width: 100%;
    }
    
    .fpc-history-meta {
        font-size: 12px;
    }
}

/* 首页样式 */
.fpc-home-page {
    min-height: 100vh;
    background: #f5f5f5;
}

.fpc-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.fpc-header .fpc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpc-logo {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

.fpc-nav {
    display: flex;
    gap: 15px;
}

.fpc-nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.fpc-nav-link:hover {
    background: #f0f0f0;
}

.fpc-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.fpc-banner h1 {
    font-size: 36px;
    margin: 0 0 15px 0;
}

.fpc-banner p {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.fpc-section {
    padding: 40px 0;
}

.fpc-section-gray {
    background: #fff;
}

.fpc-section-title {
    font-size: 28px;
    margin: 0 0 30px 0;
    text-align: center;
}

.fpc-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.fpc-author-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.fpc-author-card:hover {
    transform: translateY(-5px);
}

.fpc-author-avatar {
    margin-bottom: 15px;
}

.fpc-author-avatar img {
    border-radius: 50%;
}

.fpc-author-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.fpc-author-stats {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.fpc-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fpc-article-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fpc-article-content {
    flex: 1;
}

.fpc-article-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.fpc-article-content h3 a {
    color: #333;
    text-decoration: none;
}

.fpc-article-content h3 a:hover {
    color: #007bff;
}

.fpc-article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.fpc-article-content p {
    color: #666;
    margin: 0;
}

.fpc-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.fpc-cta-section h2 {
    font-size: 32px;
    margin: 0 0 15px 0;
}

.fpc-cta-section p {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.fpc-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* 认证页面 */
.fpc-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.fpc-auth-container {
    width: 100%;
    max-width: 400px;
}

.fpc-auth-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fpc-auth-box h2 {
    margin: 0 0 20px 0;
    text-align: center;
}

.fpc-auth-links {
    margin-top: 20px;
    text-align: center;
}

.fpc-auth-links p {
    margin: 10px 0;
}

/* 申请作者页面 */
.fpc-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 40px 0;
}

.fpc-apply-author-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.fpc-apply-intro {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.fpc-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fpc-benefit-item {
    text-align: center;
    padding: 20px;
}

.fpc-benefit-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.fpc-benefit-item h3 {
    margin: 0 0 10px 0;
}

.fpc-apply-form-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}

/* 用户中心 */
.fpc-user-center {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 40px 0;
}

.fpc-user-header {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fpc-user-avatar img {
    border-radius: 50%;
}

.fpc-user-info {
    flex: 1;
}

.fpc-user-info h2 {
    margin: 0 0 10px 0;
}

.fpc-user-info p {
    margin: 5px 0;
    color: #666;
}

.fpc-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.fpc-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.fpc-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.fpc-user-package-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.fpc-package-header {
    margin-bottom: 15px;
}

.fpc-package-header h3 {
    margin: 0 0 5px 0;
}

.fpc-package-author {
    color: #666;
    font-size: 14px;
}

.fpc-package-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.fpc-stat {
    flex: 1;
}

.fpc-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.fpc-stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

.fpc-purchases-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fpc-purchase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.fpc-purchase-info h4 {
    margin: 0 0 5px 0;
}

.fpc-purchase-info h4 a {
    color: #333;
    text-decoration: none;
}

.fpc-purchase-date {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.fpc-orders-table-container {
    overflow-x: auto;
}

.fpc-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.fpc-status-pending {
    background: #fff3cd;
    color: #856404;
}

.fpc-status-success {
    background: #d4edda;
    color: #155724;
}

.fpc-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* 表单样式 */
.fpc-form {
    width: 100%;
}

.fpc-form-group {
    margin-bottom: 20px;
}

.fpc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.fpc-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.fpc-input,
.fpc-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.fpc-input:focus,
.fpc-textarea:focus {
    outline: none;
    border-color: #007bff;
}

.fpc-textarea {
    resize: vertical;
}

/* 按钮样式 */
.fpc-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
}

.fpc-btn-primary {
    background: #007bff;
    color: #fff;
}

.fpc-btn-primary:hover {
    background: #0056b3;
}

.fpc-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.fpc-btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.fpc-btn-block {
    display: block;
    width: 100%;
}

/* 消息提示 */
.fpc-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.fpc-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fpc-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fpc-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fpc-banner h1 {
        font-size: 28px;
    }
    
    .fpc-banner p {
        font-size: 16px;
    }
    
    .fpc-authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .fpc-article-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fpc-article-item .fpc-btn {
        margin-top: 15px;
        width: 100%;
    }
    
    .fpc-user-header {
        flex-direction: column;
        text-align: center;
    }
    
    .fpc-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .fpc-purchase-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fpc-purchase-item .fpc-btn {
        margin-top: 10px;
        width: 100%;
    }
}



/* 新版首页样式 */
.fpc-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 100;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    /* iOS安全区域适配 */
    padding-top: max(10px, env(safe-area-inset-top));
}

.fpc-top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpc-site-name {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.fpc-top-actions {
    display: flex;
    gap: 12px;
}

.fpc-search-btn,
.fpc-menu-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpc-search-btn:active,
.fpc-menu-btn:active {
    transform: scale(0.9);
}

/* 我关注的区域 */
.fpc-followed-section {
    padding: 15px;
    background: #fff;
}

.fpc-section-header {
    margin-bottom: 12px;
}

.fpc-section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.fpc-followed-authors {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.fpc-followed-authors::-webkit-scrollbar {
    display: none;
}

.fpc-author-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.fpc-author-avatar-wrapper {
    position: relative;
    margin-bottom: 5px;
}

.fpc-author-avatar-wrapper img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
}

.fpc-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.fpc-author-name {
    font-size: 12px;
    color: #666;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fpc-empty-followed {
    text-align: center;
    padding: 20px;
    color: #999;
}

.fpc-empty-followed p {
    margin: 0;
    font-size: 14px;
}

/* 标签页 */
.fpc-tabs {
    display: flex;
    background: #fff;
    position: sticky;
    top: 50px; /* 顶部栏高度 */
    z-index: 90;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fpc-tab {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: color 0.2s;
    font-weight: 500;
}

.fpc-tab:active {
    background: #f8f8f8;
}

.fpc-tab.active {
    color: #007bff;
    font-weight: 600;
}

.fpc-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #007bff;
    border-radius: 2px 2px 0 0;
}

/* 内容区域 */
.fpc-content-area {
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
    padding-bottom: 80px;
}

.fpc-article-count {
    padding: 12px 15px;
    font-size: 13px;
    color: #999;
    background: #fff;
}

/* 文章卡片 */
.fpc-articles-section {
    padding: 0 12px;
}

.fpc-article-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.fpc-article-card:active {
    transform: scale(0.98);
    background: #f8f8f8;
}

.fpc-article-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fpc-article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fpc-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpc-update-time {
    font-size: 12px;
    color: #999;
}

.fpc-article-price {
    font-size: 17px;
    font-weight: 600;
    color: #ff4444;
}

/* 套餐卡片 */
.fpc-packages-section {
    padding: 15px;
}

.fpc-package-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fpc-package-info {
    flex: 1;
}

.fpc-package-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.fpc-package-author {
    font-size: 12px;
    color: #999;
    margin: 0 0 5px 0;
}

.fpc-package-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.fpc-package-price {
    margin-left: 15px;
}

.fpc-price-amount {
    font-size: 18px;
    font-weight: 600;
    color: #ff4444;
}

/* 空状态 */
.fpc-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.fpc-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .fpc-home-page {
        padding-bottom: 80px;
    }
}


/* 用户中心页面 */
.fpc-user-center-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 80px;
}

/* 用户信息卡片 */
.fpc-user-card {
    background: #fff;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fpc-user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
}

.fpc-user-details {
    flex: 1;
}

.fpc-user-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.fpc-user-id {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.fpc-user-follow {
    text-align: center;
}

.fpc-follow-count {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.fpc-follow-label {
    display: block;
    font-size: 12px;
    color: #999;
}

/* 功能图标网格 */
.fpc-function-grid {
    background: #fff;
    padding: 20px 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.fpc-function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.fpc-function-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 8px;
}

.fpc-function-icon svg {
    width: 28px;
    height: 28px;
    color: #666;
}

.fpc-function-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 菜单列表 */
.fpc-menu-list {
    margin-top: 10px;
    background: #fff;
}

.fpc-menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.3s;
}

.fpc-menu-item:active {
    background: #f8f8f8;
}

.fpc-menu-item:last-child {
    border-bottom: none;
}

.fpc-menu-label {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.fpc-menu-arrow {
    font-size: 20px;
    color: #ccc;
}

.fpc-menu-status {
    font-size: 13px;
    color: #999;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .fpc-function-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* 作者中心页面 */
.fpc-author-center-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 80px;
}

/* 作者顶部收益卡片 */
.fpc-author-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 15px;
    color: #fff;
}

.fpc-balance-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.fpc-balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.fpc-balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.fpc-balance-card .fpc-btn {
    background: #fff;
    color: #667eea;
}

.fpc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fpc-stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
}

.fpc-stat-item .fpc-stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.fpc-stat-item .fpc-stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 概览区域 */
.fpc-overview-section {
    padding: 15px;
}

.fpc-section-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fpc-section-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.fpc-revenue-amount {
    font-size: 32px;
    font-weight: 700;
    color: #00a32a;
    margin-bottom: 10px;
}

.fpc-revenue-detail {
    font-size: 13px;
    color: #666;
}

.fpc-quick-actions h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding: 0 15px;
}

.fpc-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.fpc-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.fpc-action-btn:active {
    transform: scale(0.95);
    background: #f8f8f8;
}

.fpc-action-btn svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: #667eea;
}

.fpc-action-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* 订单卡片 */
.fpc-orders-section {
    padding: 15px;
}

.fpc-order-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fpc-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.fpc-order-id {
    font-size: 13px;
    color: #666;
}

.fpc-order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.fpc-order-status.fpc-status-pending {
    background: #fff3cd;
    color: #856404;
}

.fpc-order-status.fpc-status-completed {
    background: #d4edda;
    color: #155724;
}

.fpc-order-status.fpc-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.fpc-order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpc-order-info {
    flex: 1;
}

.fpc-order-info div {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.fpc-order-amount {
    font-size: 20px;
    font-weight: 700;
    color: #00a32a;
}

/* 套餐卡片 */
.fpc-packages-section {
    padding: 15px;
}

.fpc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fpc-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.fpc-package-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fpc-package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fpc-package-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.fpc-package-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.fpc-package-status.active {
    background: #d4edda;
    color: #155724;
}

.fpc-package-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.fpc-package-body p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.fpc-package-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.fpc-package-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 文章卡片 */
.fpc-articles-section {
    padding: 15px;
}

.fpc-article-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fpc-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fpc-article-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.fpc-article-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #d4edda;
    color: #155724;
    margin-left: 10px;
}

.fpc-article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.fpc-article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.fpc-article-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .fpc-author-center-page {
        padding-bottom: 80px;
    }
}


/* 微信登录样式 */
.fpc-auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.fpc-auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.fpc-auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.fpc-wechat-login {
    margin-bottom: 20px;
}

.fpc-btn-wechat {
    background: #07c160;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none;
}

.fpc-btn-wechat:hover {
    background: #06ad56;
    color: #fff;
}

.fpc-btn-wechat svg {
    flex-shrink: 0;
}


/* 作者详情页面 */
.fpc-author-profile-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 80px;
}

.fpc-author-info-card {
    background: #fff;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.fpc-author-avatar {
    flex-shrink: 0;
}

.fpc-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.fpc-author-details {
    flex: 1;
}

.fpc-author-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.fpc-author-stats {
    display: flex;
    gap: 20px;
}

.fpc-stat-item {
    display: flex;
    flex-direction: column;
}

.fpc-stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
}

.fpc-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.fpc-author-actions {
    position: absolute;
    top: 20px;
    right: 15px;
}

.fpc-follow-btn {
    padding: 8px 20px;
    border: 1px solid #ff4444;
    background: #fff;
    color: #ff4444;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.fpc-follow-btn:hover {
    background: #fff5f5;
}

.fpc-follow-btn.followed {
    background: #ff4444;
    color: #fff;
}

.fpc-follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 标签页内容 */
.fpc-tab-content {
    background: #f5f5f5;
    min-height: calc(100vh - 300px);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .fpc-author-info-card {
        flex-wrap: wrap;
    }
    
    .fpc-author-actions {
        position: static;
        width: 100%;
        margin-top: 15px;
    }
    
    .fpc-follow-btn {
        width: 100%;
    }
}

/* 隐藏评论区域 */
#comments,
.comments-area,
#respond,
.comment-respond,
.comment-form,
.comments-title,
.comment-reply-title,
.comment-list,
.comment-navigation,
.no-comments {
    display: none !important;
}

/* 文章详情页样式 */
.fpc-article-detail-page {
    min-height: 100vh;
    background: #fff;
    padding-bottom: 70px;
}

.fpc-article-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
}

.fpc-article-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.fpc-article-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.fpc-article-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin: 0;
}

.fpc-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fpc-article-body p {
    margin: 0 0 16px 0;
}

.fpc-article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
}

.fpc-article-body h2,
.fpc-article-body h3,
.fpc-article-body h4 {
    margin: 24px 0 14px 0;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.fpc-article-body h2 {
    font-size: 19px;
}

.fpc-article-body h3 {
    font-size: 17px;
}

.fpc-article-body h4 {
    font-size: 16px;
}

.fpc-article-body ul,
.fpc-article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.fpc-article-body li {
    margin: 8px 0;
    line-height: 1.7;
}

.fpc-article-body blockquote {
    margin: 20px 0;
    padding: 12px 16px;
    background: #f9f9f9;
    border-left: 4px solid #007bff;
    color: #666;
    border-radius: 4px;
}

.fpc-article-body code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #e83e8c;
}

.fpc-article-body pre {
    background: #f5f5f5;
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.fpc-article-body pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .fpc-article-title {
        font-size: 19px;
    }
    
    .fpc-article-body {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .fpc-article-body h2 {
        font-size: 18px;
    }
    
    .fpc-article-body h3 {
        font-size: 16px;
    }
    
    .fpc-article-body h4 {
        font-size: 15px;
    }
}

/* 作者筛选提示 */
.fpc-filter-notice {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #0050b3;
}

.fpc-filter-notice strong {
    color: #003a8c;
}

.fpc-clear-filter {
    color: #1890ff;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 12px;
    border: 1px solid #1890ff;
    border-radius: 4px;
    transition: all 0.3s;
}

.fpc-clear-filter:hover {
    background: #1890ff;
    color: #fff;
}

/* 作者筛选链接 */
.fpc-author-filter-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 5px;
}

.fpc-author-filter-link:hover {
    background: #e6f7ff;
    color: #0050b3;
}

.fpc-article-header .fpc-author-filter-link {
    font-size: 12px;
    color: #666;
    margin-left: 0;
}

.fpc-article-header .fpc-author-filter-link:hover {
    color: #1890ff;
}

/* 历史页面作者名称样式 */
.fpc-article-footer .fpc-author-name {
    color: #666;
}

.fpc-article-footer .fpc-author-filter-link {
    color: #1890ff;
    text-decoration: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: none;
}

.fpc-article-footer .fpc-author-filter-link:hover {
    color: #0050b3;
    background: none;
    text-decoration: underline;
}
