/**
 * 文章页面通用样式
 * 所有文章页面引用此文件，可额外添加私有样式
 */

/* ========== 页面整体布局 ========== */
.page-container {
    min-height: calc(100vh - 70px);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 40px 20px 60px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
}

/* ========== 左侧文章区域 ========== */
.article-section {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* 返回按钮 */
.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.back-to-list:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #003DA5;
}

.breadcrumb-separator {
    color: #d1d5db;
}

/* 文章标题区 */
.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.article-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #6b7280;
}

.article-tags {
    display: flex;
    gap: 8px;
}

.article-tag {
    padding: 4px 12px;
    background: #f0f5ff;
    color: #003DA5;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

.article-tag.area {
    background: #fef3c7;
    color: #92400e;
}

.article-tag.hot {
    background: #fee2e2;
    color: #991b1b;
}

/* 文章内容区 */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: #111827;
    font-weight: 600;
}

.article-content a {
    color: #003DA5;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* ========== 套餐卡片 ========== */
.article-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.article-package-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.article-package-card:hover {
    background: #fff;
    border-color: #003DA5;
    box-shadow: 0 8px 24px rgba(0, 61, 165, 0.1);
}

.article-package-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.article-package-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.article-package-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: #4b5563;
}

.article-package-card li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
}

.article-package-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003DA5;
    margin-bottom: 4px;
}

.article-package-card .price-note {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.article-package-card .btn {
    width: 100%;
    padding: 12px;
    font-size: 0.9375rem;
}

/* ========== 提示框 ========== */
.notice-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.notice-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-box ul {
    margin: 0;
    padding-left: 20px;
}

.notice-box li {
    color: #78350f;
    font-size: 0.9375rem;
}

.info-box {
    background: #f0f5ff;
    border-left: 4px solid #003DA5;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
}

.faq-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.faq-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 12px;
}

/* ========== 文章底部 ========== */
.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

/* 上一篇/下一篇导航 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.nav-link-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link-card:hover {
    background: #f0f5ff;
}

.nav-link-card.next {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.5;
}

.nav-link-card:hover .nav-title {
    color: #003DA5;
}

/* ========== 右侧预约表单 ========== */
.booking-sidebar {
    position: sticky;
    top: 100px;
}

.booking-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.booking-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
}

.booking-card .subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    color: #1f2937;
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003DA5;
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.btn-book {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #003DA5, #002B5C);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 61, 165, 0.3);
}

.booking-note {
    margin-top: 14px;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hotline-strip {
    margin-top: 20px;
    padding: 14px;
    background: #f0f5ff;
    border-radius: 12px;
    text-align: center;
}

.hotline-strip .label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.hotline-strip .number {
    font-size: 1.375rem;
    font-weight: 700;
    color: #003DA5;
}

/* ========== 侧边栏 - 相关文章 ========== */
.sidebar-section {
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-item:hover {
    background: #f0f5ff;
}

.related-date {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.related-title {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
}

.related-item:hover .related-title {
    color: #003DA5;
}

/* ========== 分享按钮 ========== */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #003DA5;
    color: #fff;
}

/* ========== 步骤列表（用于故障排除等） ========== */
.step-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.step-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #003DA5;
    margin-bottom: 12px;
}

.step-list {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.step-list ol {
    margin: 0;
    padding-left: 20px;
}

.step-list li {
    margin-bottom: 12px;
}

/* ========== 问题/解决方案框 ========== */
.reason-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.solution-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

/* ========== 推广卡片 ========== */
.promo-card {
    background: linear-gradient(135deg, #003DA5, #002B5C);
    color: #fff;
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
    text-align: center;
}

.promo-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
}

.promo-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 12px 0;
}

.promo-card .features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.promo-card .features li {
    padding: 8px 0;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .booking-sidebar {
        position: static;
        order: -1;
    }
    
    .article-section {
        padding: 28px;
    }
    
    .article-packages {
        grid-template-columns: 1fr;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-link-card.next {
        text-align: left;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-section {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
