/* 详情页样式 */
.detail-page {
	display:none;
    min-height: 100vh;
    background: #f5f5f5;
    max-width: 100%;
    /* overflow-x: hidden; */
	position: absolute;
    top: 0;
    width: 100%;
    left: 0;
	z-index: 9999;
}

/* 头部样式 */
.detail-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100%;
}

/* PC端头部优化 */
@media (min-width: 1200px) {
    .detail-header {
        padding: 0 calc((100vw - 1400px) / 2);
        max-width: 1400px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .detail-header {
        padding: 0 30px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .detail-header {
        padding: 0 25px;
    }
}

.header-left, .header-right {
    width: 60px;
    display: flex;
    justify-content: center;
}

.header-center {
    flex: 1;
    text-align: center;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.back-btn, .share-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
	z-index: 9999999;
}

.back-btn:hover, .share-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* 主要内容区域 */
.detail-content {
    margin-top: 60px;
    padding: 0;
    min-height: calc(100vh - 60px);
}

/* PC端隐藏头部后的调整 */
@media (min-width: 769px) {
    .detail-content {
        margin-top: 0;
        min-height: 100vh;
    }
}

/* 活动横幅 */
.activity-banner {
    position: relative;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.banner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.activity-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.activity-subtitle {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 活动信息卡片 */
.activity-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.activity-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
}

.info-value {
    color: #333;
    flex: 1;
}

/* 文章容器 */
.article-container {
    background: #fff;
    margin: 0;
    width: 100%;
    min-height: calc(100vh - 60px);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 文章标题区域 */
.article-header {
    background: #fff;
    color: #333;
    padding: 60px 40px 40px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}


.article-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: 2px;
    color: #333;
    position: relative;
}
.article-close{
	position: absolute;
	right: 20px;
	top: 20px;
	font-size: 30px;
	color: #fff;
	background: #3e3b3b;
	width: 42px;
	height: 42px;
	border-radius: 30px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 16px;
    position: relative;
}

.article-date, .article-category {
    background: #f8f9fa;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

/* 文章内容区域 */
.article-content {
    padding: 0;
    background: #fff;
}

/* 富文本编辑区域 */
.content-editor {
    background: #fff;
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: calc(100vh - 60px);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.editor-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.btn-edit {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-edit:hover {
    background: #0056b3;
}

.editor-content {
    min-height: calc(100vh - 60px);
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.rich-content {
    line-height: 1.8;
    color: #333;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-content p {
    margin-bottom: 16px;
    font-size: 16px;
}

.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4, .rich-content h5, .rich-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.rich-content h1 { font-size: 28px; }
.rich-content h2 { font-size: 24px; }
.rich-content h3 { font-size: 20px; }
.rich-content h4 { font-size: 18px; }
.rich-content h5 { font-size: 16px; }
.rich-content h6 { font-size: 14px; }

.rich-content ul, .rich-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.rich-content li {
    margin-bottom: 8px;
}

.rich-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}

.rich-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    font-style: italic;
}

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

.rich-content th, .rich-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.rich-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.gift-showcase {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gift-showcase h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
}

.gift-item {
    text-align: center;
}

.gift-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px;
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}

.gift-item span {
    font-size: 12px;
    color: #666;
    display: block;
}

/* 右侧悬浮框 */
.floating-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

/* PC端悬浮按钮优化 */
@media (min-width: 769px) {
    .floating-btn {
        width: 70px;
        height: 70px;
        font-size: 14px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }
    
    .floating-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
}

@media (min-width: 1200px) {
    .floating-btn {
        width: 80px;
        height: 80px;
        font-size: 16px;
    }
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
}

.service-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40,167,69,0.4);
}

.apply-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,107,0.4);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* PC端弹窗优化 */
@media (min-width: 769px) {
    .modal-content {
        max-width: 600px;
        margin: 40px auto;
    }
}

@media (min-width: 1200px) {
    .modal-content {
        max-width: 700px;
        margin: 60px auto;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* 客服内容样式 */
.service-content {
    text-align: center;
}

.service-info {
    margin-bottom: 24px;
}

.service-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.contact-label {
    font-weight: 500;
    color: #666;
}

.contact-value {
    color: #333;
    font-weight: 500;
}

.service-actions {
    margin-top: 20px;
}

/* PC端大屏幕优化 */
@media (min-width: 1200px) {
    .detail-page {
        background: #fff;
    }
    
    .detail-header {
        display: none;
    }
    
    .detail-content {
        max-width: 1400px;
        margin: 0 auto;
        background: #f5f5f5;
    }
    
    .article-container {
        background: #fff;
        box-shadow: 0 0 30px rgba(0,0,0,0.15);
        border-radius: 12px;
        overflow: hidden;
        min-height: 100vh;
    }
    
    .article-header {
        padding: 80px 60px 50px;
        background: #fff;
        color: #333;
    }
    
    .article-title {
        font-size: 52px;
        letter-spacing: 3px;
        color: #333;
    }
	.article-close{
		position: absolute;
		right: 20px;
		top: 20px;
		font-size: 30px;
		color: #fff;
		background: #3e3b3b;
		width: 42px;
		height: 42px;
		border-radius: 30px;
	}
    
    .article-meta {
        font-size: 18px;
        gap: 40px;
    }
    
    .article-date, .article-category {
        background: #f8f9fa;
        color: #666;
        border: 1px solid #e9ecef;
    }
    
    .article-content {
        padding: 0;
    }
    
    .rich-content {
        font-size: 18px;
        line-height: 1.8;
        padding: 50px 80px 80px;
    }
    
    .rich-content h1 { 
        font-size: 42px; 
        font-weight: 700;
        color: #1a1a1a;
        text-align: center;
        margin: 40px 0 30px 0;
        line-height: 1.2;
        letter-spacing: 1px;
        position: relative;
    }
    
    .rich-content h1::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
        margin: 20px auto 0;
        border-radius: 2px;
    }
    
    .rich-content h2 { 
        font-size: 32px; 
        font-weight: 600;
        color: #2c3e50;
        margin: 35px 0 20px 0;
        line-height: 1.3;
        border-left: 4px solid #3498db;
        padding-left: 20px;
    }
    
    .rich-content h3 { 
        font-size: 26px; 
        font-weight: 600;
        color: #34495e;
        margin: 30px 0 15px 0;
        line-height: 1.3;
    }
    
    .rich-content h4 { 
        font-size: 22px; 
        font-weight: 500;
        color: #2c3e50;
        margin: 25px 0 12px 0;
        line-height: 1.4;
    }
    
    .rich-content h5 { 
        font-size: 20px; 
        font-weight: 500;
        color: #34495e;
        margin: 20px 0 10px 0;
        line-height: 1.4;
    }
    
    .rich-content h6 { 
        font-size: 18px; 
        font-weight: 500;
        color: #7f8c8d;
        margin: 18px 0 8px 0;
        line-height: 1.4;
    }
    
    .rich-content p {
        font-size: 18px;
        margin-bottom: 20px;
        text-indent: 2em;
        text-align: justify;
    }
    
    .rich-content p:first-of-type {
        font-size: 20px;
        color: #555;
        font-weight: 400;
        text-indent: 0;
        text-align: center;
        font-style: italic;
        margin-bottom: 30px;
        padding: 15px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    .floating-panel {
        right: calc((100vw - 1400px) / 2 + 20px);
    }
    
    /* PC端滚动条优化 */
    .rich-content::-webkit-scrollbar {
        width: 8px;
    }
    
    .rich-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .rich-content::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .rich-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* PC端内容区域过渡效果 */
    .detail-content {
        transition: all 0.3s ease;
    }
    
    /* PC端按钮悬停效果增强 */
    .back-btn:hover, .share-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}

/* 中等屏幕PC端 */
@media (min-width: 992px) and (max-width: 1199px) {
    .detail-header {
        display: none;
    }
    
    .detail-content {
        max-width: 100%;
        margin: 0;
        padding: 0 20px;
    }
    
    .article-container {
        border-radius: 8px;
    }
    
    .article-header {
        padding: 60px 40px 40px;
        background: #fff;
        color: #333;
    }
    
    .article-title {
        font-size: 44px;
        letter-spacing: 2px;
        color: #333;
    }
    
    .article-meta {
        font-size: 16px;
        gap: 30px;
    }
    
    .article-date, .article-category {
        background: #f8f9fa;
        color: #666;
        border: 1px solid #e9ecef;
    }
    
    .rich-content {
        font-size: 17px;
        padding: 40px 50px 60px;
    }
    
    .rich-content h1 { 
        font-size: 36px; 
        font-weight: 700;
        color: #1a1a1a;
        text-align: center;
        margin: 35px 0 25px 0;
        line-height: 1.2;
        letter-spacing: 0.5px;
    }
    
    .rich-content h1::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
        margin: 15px auto 0;
        border-radius: 2px;
    }
    
    .rich-content h2 { 
        font-size: 28px; 
        font-weight: 600;
        color: #2c3e50;
        margin: 30px 0 18px 0;
        line-height: 1.3;
        border-left: 3px solid #3498db;
        padding-left: 18px;
    }
    
    .rich-content h3 { 
        font-size: 24px; 
        font-weight: 600;
        color: #34495e;
        margin: 25px 0 12px 0;
        line-height: 1.3;
    }
    
    .rich-content h4 { 
        font-size: 20px; 
        font-weight: 500;
        color: #2c3e50;
        margin: 20px 0 10px 0;
        line-height: 1.4;
    }
    
    .rich-content p {
        text-indent: 2em;
        text-align: justify;
    }
    
    .rich-content p:first-of-type {
        font-size: 18px;
        color: #555;
        font-weight: 400;
        text-indent: 0;
        text-align: center;
        font-style: italic;
        margin-bottom: 25px;
        padding: 12px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    .floating-panel {
        right: 30px;
    }
}

/* 小屏幕PC端 */
@media (min-width: 769px) and (max-width: 991px) {
    .detail-header {
        display: none;
    }
    
    .detail-content {
        max-width: 100%;
        margin: 0;
        padding: 0 15px;
    }
    
    .article-container {
        border-radius: 6px;
    }
    
    .article-header {
        padding: 50px 30px 35px;
        background: #fff;
        color: #333;
    }
    
    .article-title {
        font-size: 38px;
        letter-spacing: 1px;
        color: #333;
    }
    
    .article-meta {
        font-size: 14px;
        gap: 25px;
    }
    
    .article-date, .article-category {
        background: #f8f9fa;
        color: #666;
        border: 1px solid #e9ecef;
    }
    
    .rich-content {
        font-size: 16px;
        padding: 35px 40px 50px;
    }
    
    .rich-content h1 { 
        font-size: 32px; 
        font-weight: 700;
        color: #1a1a1a;
        text-align: center;
        margin: 30px 0 20px 0;
        line-height: 1.2;
        letter-spacing: 0.3px;
    }
    
    .rich-content h1::after {
        content: '';
        display: block;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
        margin: 12px auto 0;
        border-radius: 2px;
    }
    
    .rich-content h2 { 
        font-size: 24px; 
        font-weight: 600;
        color: #2c3e50;
        margin: 25px 0 15px 0;
        line-height: 1.3;
        border-left: 3px solid #3498db;
        padding-left: 15px;
    }
    
    .rich-content h3 { 
        font-size: 20px; 
        font-weight: 600;
        color: #34495e;
        margin: 20px 0 10px 0;
        line-height: 1.3;
    }
    
    .rich-content h4 { 
        font-size: 18px; 
        font-weight: 500;
        color: #2c3e50;
        margin: 18px 0 8px 0;
        line-height: 1.4;
    }
    
    .rich-content p {
        text-indent: 2em;
        text-align: justify;
    }
    
    .rich-content p:first-of-type {
        font-size: 17px;
        color: #555;
        font-weight: 400;
        text-indent: 0;
        text-align: center;
        font-style: italic;
        margin-bottom: 20px;
        padding: 10px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    .floating-panel {
        right: 25px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-content {
        padding: 0;
    }
    
    .article-container {
        border-radius: 0;
        box-shadow: none;
    }
    
    .article-header {
        display: none;
    }
    
    .article-content {
        padding: 0;
    }
    
    .editor-content {
        padding: 0;
        min-height: calc(100vh - 60px);
    }
    
    .rich-content {
        font-size: 14px;
    }
    
    .rich-content h1 { font-size: 24px; }
    .rich-content h2 { font-size: 20px; }
    .rich-content h3 { font-size: 18px; }
    .rich-content h4 { font-size: 16px; }
    
    .floating-panel {
        right: 12px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .article-header {
        display: none;
    }
    
    .editor-content {
        padding: 0;
    }
    
    .rich-content {
        font-size: 13px;
    }
    
    .rich-content h1 { font-size: 20px; }
    .rich-content h2 { font-size: 18px; }
    .rich-content h3 { font-size: 16px; }
    .rich-content h4 { font-size: 14px; }
    
    .rich-content p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .floating-panel {
        right: 8px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
    }
}
