/* 有偿资讯页面样式 */

/* 基础样式 */
.container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 顶部Banner */
.banner {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.banner_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: url('./images/header_bg.png') center center no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner_title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner_subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.banner_btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.banner_btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}


/* 资讯列表 */
.news_list {
    padding: 60px 0;
}
.news_item {
    margin-top: 20px;
}

.section_title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.section_title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #667eea;
}

.news_grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.news_item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: stretch;
    height: 200px;
}

.news_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news_image {
    width: 280px;
    min-width: 280px;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.news_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.news_item:hover .news_image img {
    transform: scale(1.05);
}

.price_tag {
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.news_content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 标题和价格同行布局 */
.title_price_row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.news_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news_summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 可点击元素样式 */
.clickable {
    cursor: pointer;
    transition: color 0.3s ease;
}

.clickable:hover {
    color: #667eea;
}

.news_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news_date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news_category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page_btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page_btn:hover,
.page_btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 详情页样式 */
.detail_body {
    background: #f8f9fa;
}

.detail_nav {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detail_nav .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back_btn {
    color: #667eea;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.back_btn:hover {
    color: #5a6fd8;
}

.nav_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.detail_container {
    padding: 40px 0;
    max-width: 1200px;
}

.article_content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    word-wrap: break-word;
}

.article_header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article_title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article_meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.meta_item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article_image {
    margin-bottom: 30px;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

.article_image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    object-fit: cover;
}

.article_summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.article_summary p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.article_body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article_body p {
    margin-bottom: 20px;
}

.article_body h2,
.article_body h3 {
    margin: 30px 0 15px 0;
    color: #333;
}

.article_body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article_preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    position: relative;
}

.article_preview p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.article_preview .preview_notice {
    text-align: center;
    color: #667eea;
    font-weight: 500;
    font-size: 14px;
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    margin: 20px 0 0 0;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

/* 支付区域 */
.payment_section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.payment_info h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.price_display {
    margin-bottom: 15px;
}

.price_label {
    font-size: 16px;
    color: #666;
}

.price_value {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    margin-left: 10px;
}

.payment_desc {
    color: #999;
    margin-bottom: 25px;
}

.payment_btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment_btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 相关推荐 */
.related_section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.related_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.related_item {
    text-align: center;
}

.related_item a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.related_item a:hover {
    transform: translateY(-3px);
}

.related_item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related_item h4 {
    font-size: 14px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related_price {
    color: #ff6b35;
    font-weight: bold;
    font-size: 14px;
}

.no_related {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* 支付弹窗 */
.payment_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal_content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal_header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close_btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close_btn:hover {
    color: #666;
}

.modal_body {
    padding: 30px;
}

.payment_item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.payment_item:last-child {
    border-bottom: none;
    margin-bottom: 25px;
}

.item_label {
    color: #666;
    font-weight: 500;
}

.item_value {
    color: #333;
    font-weight: bold;
}

.price_highlight {
    color: #ff6b35;
    font-size: 18px;
}

.payment_methods h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.method_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method_item:hover {
    border-color: #667eea;
}

.method_item.active {
    border-color: #667eea;
    background: #f8f9ff;
}

.method_icon {
    font-size: 20px;
}

.method_name {
    font-weight: 500;
    color: #333;
}

.modal_footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.cancel_btn,
.confirm_btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel_btn {
    background: #f5f5f5;
    color: #666;
}

.cancel_btn:hover {
    background: #e0e0e0;
}

.confirm_btn {
    background: #667eea;
    color: white;
}

.confirm_btn:hover {
    background: #5a6fd8;
}

.confirm_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 底部 */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer_container {
    text-align: center;
}

.footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* 左侧悬浮导航 */
.float_nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: white;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.float_nav_item {
    display: block;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.float_nav_item:last-child {
    border-bottom: none;
}

.float_nav_item:hover {
    background: #667eea;
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .banner_title {
        font-size: 32px;
    }
    
    .banner_subtitle {
        font-size: 16px;
    }
    
    .category_list {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .news_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail_container {
        padding: 20px 0;
    }
    
    .article_content {
        padding: 20px;
    }
    
    .article_title {
        font-size: 24px;
    }
    
    .article_meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .related_list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .float_nav {
        display: none;
    }
    
    .modal_content {
        width: 95%;
        margin: 20px;
    }
    
    .modal_body {
        padding: 20px;
    }
    
    .modal_footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .search_box {
        flex-direction: column;
    }
    
    .search_input {
        border-bottom: 1px solid #eee;
    }
    
    .related_list {
        grid-template-columns: 1fr;
    }
    
    .payment_item {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty_state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty_state img {
    width: 120px;
    height: 120px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty_state h3 {
    margin-bottom: 10px;
    color: #666;
}

.empty_state p {
    margin: 0;
}

/* 支付二维码模态窗样式 */
.qr_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.qr_modal_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 1000px;
    height: 800px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.qr_modal_header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.qr_modal_header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.qr_modal_body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qr_modal_body iframe {
    border: none;
    width: 100%;
    height: 100%;
    flex: 1;
    display: block;
}

.qr_modal_footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #f8f9fa;
}

.payment_tip {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.close_payment_btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.close_payment_btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 响应式支持 */
/* 支付模态窗加载动画 */
.payment_loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #666;
    font-size: 16px;
}

.payment_loading_spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: payment_spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes payment_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment_loading_text {
    font-weight: 500;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .qr_modal_content {
        width: 95%;
        margin: 20px;
    }
}