/* ============================================
   single.css — Fengcai V1.2 文章/产品详情页
   电商模式：左图右文 + 规格表 + 数量 + 分享
   前缀：fc- (Fengcai)
   ============================================ */

/* ========== 0. FORCE RESET for .single-post ========== */
body.single .single-post,
.single-post {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* ========== 1. BREADCRUMB BAR (全宽贴边) ========== */
.fc-breadcrumb-bar {
    width: 100vw;
    max-width: 100%;
    background: #f5f8fc;
    border-bottom: 1px solid #e8ecf1;
    padding: 14px 0;
    box-sizing: border-box;
    margin: 0;
    left: 0;
    right: 0;
}

.fc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.fc-breadcrumb {
    font-size: 13px;
    color: #8897aa;
    padding: 0;
}

.fc-breadcrumb a {
    color: #8897aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fc-breadcrumb a:hover {
    color: #0077be;
}

.fc-bc-sep {
    margin: 0 8px;
    color: #c0cdd9;
}

.fc-current {
    color: #0b1f3a;
    font-weight: 500;
}

/* ========== 2. MAIN DETAIL SECTION (全宽贴边) ========== */
.fc-detail-section {
    width: 100vw;
    max-width: 100%;
    background: #fff;
    padding: 45px 0;
    box-sizing: border-box;
    margin: 0;
    left: 0;
    right: 0;
}

.fc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* ========== 3. LEFT: Gallery ========== */
.fc-gallery {
    position: sticky;
    top: 90px;
}

.fc-gallery-main {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #f5f8fc 0%, #e8eef5 100%);
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.fc-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.fc-slide.fc-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.fc-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.fc-slide.fc-no-image {
    flex-direction: column;
    gap: 12px;
}

.fc-no-img-icon {
    font-size: 64px;
    color: #c0cdd9;
}

.fc-no-img-text {
    font-size: 14px;
    color: #8897aa;
}

/* 视频 slide */
.fc-video-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.fc-placeholder {
    flex-direction: column;
    gap: 10px;
}

.fc-placeholder-icon {
    font-size: 48px;
    color: #c0cdd9;
}

/* ========== 4. THUMBS ROW (4 images + optional video) ========== */
.fc-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.fc-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    background: #f5f8fc;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #8897aa;
    overflow: hidden;
    transition: all 0.25s ease;
    padding: 0;
}

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

.fc-thumb:hover {
    border-color: #0077be;
    background: #eaf4fe;
}

.fc-thumb.fc-active {
    border-color: #0077be;
    box-shadow: 0 0 0 2px rgba(0,119,190,0.15);
}

/* 视频缩略图 */
.fc-thumb.fc-video-thumb {
    background: #0b1f3a;
    color: #fff;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    flex: 0 0 80px;
}

.fc-thumb.fc-video-thumb:hover {
    background: #16345a;
    border-color: #00a3ff;
}

.fc-play-badge {
    font-size: 16px;
    color: #00a3ff;
    line-height: 1;
}

.fc-video-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== 5. RIGHT: Info ========== */
.fc-info {
    padding-top: 5px;
}

.fc-product-title {
    font-size: clamp(24px, 3vw, 30px);
    color: #0b1f3a;
    margin: 0 0 14px;
    font-weight: 700;
    line-height: 1.25;
}

.fc-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #8897aa;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f5;
}

.fc-meta-row a {
    color: #0077be;
    text-decoration: none;
}

.fc-meta-row a:hover {
    text-decoration: underline;
}

.fc-meta-sep {
    color: #c0cdd9;
}

.fc-short-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ========== 6. SPECIFICATIONS TABLE ========== */
.fc-specs-box {
    margin-bottom: 30px;
}

.fc-specs-title {
    font-size: 17px;
    color: #0b1f3a;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0077be;
    display: inline-block;
}

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

.fc-specs-table th,
.fc-specs-table td {
    padding: 10px 14px;
    border: 1px solid #e8ecf1;
    text-align: left;
}

.fc-specs-table th {
    background: #f5f8fc;
    color: #0b1f3a;
    font-weight: 600;
    width: 42%;
}

.fc-specs-table tr:nth-child(even) th,
.fc-specs-table tr:nth-child(even) td {
    background: #fafbfd;
}

/* ========== 7. QUANTITY ========== */
.fc-qty-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.fc-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #0b1f3a;
}

.fc-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce2e9;
    border-radius: 6px;
    overflow: hidden;
}

.fc-qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #f5f8fc;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-qty-btn:hover {
    background: #0077be;
    color: #fff;
}

.fc-qty-input {
    width: 56px;
    height: 38px;
    border: none;
    border-left: 1px solid #dce2e9;
    border-right: 1px solid #dce2e9;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #0b1f3a;
    background: #fff;
    -moz-appearance: textfield;
}

.fc-qty-input::-webkit-outer-spin-button,
.fc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fc-qty-input:focus {
    outline: none;
}

/* ========== 8. ACTION BUTTONS ========== */
.fc-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.fc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0077be;
    color: #fff;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.fc-btn-primary:hover {
    background: #005a8e;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,119,190,0.3);
    color: #fff;
}

.fc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0b1f3a;
    padding: 13px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid #dce2e9;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.fc-btn-secondary:hover {
    border-color: #0077be;
    color: #0077be;
    background: #f0f7fd;
}

/* ========== 9. SHARE ROW ========== */
.fc-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}

.fc-share-label {
    font-size: 14px;
    font-weight: 500;
    color: #5a6879;
}

.fc-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.fc-share-btn.fc-facebook { background: #3b5998; }
.fc-share-btn.fc-twitter   { background: #1da1f2; }
.fc-share-btn.fc-linkedin  { background: #0077b5; }
.fc-share-btn.fc-email     { background: #8897aa; }

.fc-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    color: #fff;
}

/* ========== 10. DESCRIPTION SECTION ========== */
.fc-desc-section {
    width: 100vw;
    max-width: 100%;
    background: #fafbfd;
    padding: 55px 0;
    border-top: 1px solid #eef1f5;
    box-sizing: border-box;
    margin: 0;
}

.fc-desc-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 45px;
    align-items: start;
}

.fc-desc-main,
.fc-desc-sidebar {
    min-width: 0;
}

.fc-desc-eyebrow {
    display: block;
    font-size: 13px;
    color: #e74c3c;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.fc-desc-heading {
    font-size: 24px;
    color: #0b1f3a;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0077be;
    display: inline-block;
}

.fc-desc-sidebar {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 25px;
}

.fc-desc-sidebar-title {
    font-size: 18px;
    color: #0b1f3a;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0077be;
}

.fc-related-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-related-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fafbfd;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.fc-related-link-item:hover {
    border-color: #0077be;
    box-shadow: 0 4px 12px rgba(0,119,190,0.08);
    background: #fff;
}

.fc-related-link-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-related-link-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fc-related-link-placeholder {
    font-size: 24px;
    color: #a0aec0;
    line-height: 1;
}

.fc-related-link-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fc-related-link-item:hover .fc-related-link-title {
    color: #0077be;
}

.fc-related-link-empty {
    font-size: 14px;
    color: #5a6879;
    padding: 10px 0;
}

.fc-section-heading {
    font-size: 24px;
    color: #0b1f3a;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0077be;
    display: inline-block;
}

.fc-section-heading.fc-text-center {
    display: block;
    text-align: center;
    border-bottom: none;
    position: relative;
}

.fc-section-heading.fc-text-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #0077be;
    margin: 10px auto 0;
    border-radius: 2px;
}

.fc-post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.fc-post-content p {
    margin-bottom: 16px;
}

.fc-post-content h2 {
    font-size: 22px;
    color: #0b1f3a;
    margin: 30px 0 14px;
}

.fc-post-content h3 {
    font-size: 18px;
    color: #0b1f3a;
    margin: 24px 0 12px;
}

.fc-post-content ul,
.fc-post-content ol {
    margin-bottom: 16px;
    padding-left: 22px;
}

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

.fc-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.fc-post-content a {
    color: #0077be;
    text-decoration: none;
}

.fc-post-content a:hover {
    text-decoration: underline;
}

/* ========== 11. FEATURES GRID ========== */
.fc-features-section {
    width: 100vw;
    max-width: 100%;
    background: #fff;
    padding: 55px 0;
    box-sizing: border-box;
    margin: 0;
}

.fc-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 35px;
}

.fc-feature-item {
    text-align: center;
    padding: 28px 22px;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.fc-feature-item:hover {
    border-color: #0077be;
    box-shadow: 0 8px 25px rgba(0,119,190,0.08);
    transform: translateY(-3px);
}

.fc-fi-icon {
    font-size: 34px;
    color: #0077be;
    margin-bottom: 14px;
}

.fc-feature-item h4 {
    font-size: 16px;
    color: #0b1f3a;
    margin-bottom: 8px;
    font-weight: 600;
}

.fc-feature-item p {
    font-size: 13px;
    color: #5a6879;
    line-height: 1.55;
    margin: 0;
}

/* ========== 12. RELATED PRODUCTS ========== */
.fc-related-section {
    width: 100vw;
    max-width: 100%;
    background: #f5f8fc;
    padding: 55px 0;
    box-sizing: border-box;
    margin: 0;
}

.fc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.fc-related-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fc-related-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transform: translateY(-3px);
    border-color: #0077be;
}

.fc-related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fc-related-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f5f8fc, #e8eef5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fc-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-related-body {
    padding: 18px 20px;
}

.fc-related-body h4 {
    font-size: 15px;
    color: #0b1f3a;
    margin-bottom: 6px;
    line-height: 1.35;
    font-weight: 600;
}

.fc-related-body small {
    font-size: 12px;
    color: #8897aa;
}

/* ========== 13. PREV / NEXT NAV ========== */
.fc-nav-section {
    width: 100vw;
    max-width: 100%;
    background: #fff;
    padding: 35px 0 50px;
    border-top: 1px solid #eef1f5;
    box-sizing: border-box;
    margin: 0;
}

.fc-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.fc-post-nav a {
    color: #0077be;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    max-width: 45%;
    line-height: 1.4;
    padding: 12px 0;
    transition: color 0.2s ease;
}

.fc-post-nav a:hover {
    color: #005a8e;
    text-decoration: underline;
}

.fc-nav-next {
    text-align: right;
    margin-left: auto;
}

.fc-nav-arrow {
    font-size: 18px;
    color: #0077be;
}

/* ========== 14. RESPONSIVE ========== */
@media (max-width: 1024px) {
    .fc-detail-grid {
        gap: 35px;
    }
    .fc-gallery-main {
        height: 360px;
    }
    .fc-thumb {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }
    .fc-thumb.fc-video-thumb {
        flex: 0 0 70px;
    }
}

@media (max-width: 768px) {
    .fc-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fc-desc-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .fc-desc-sidebar {
        position: static;
    }
    .fc-gallery {
        position: static;
    }
    .fc-gallery-main {
        height: 300px;
    }
    .fc-thumb {
        flex: 0 0 65px;
        width: 65px;
        height: 65px;
        font-size: 18px;
    }
    .fc-thumb.fc-video-thumb {
        flex: 0 0 65px;
    }
    .fc-product-title {
        font-size: 24px;
    }
    .fc-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .fc-btn-primary,
    .fc-btn-secondary {
        width: 100%;
        text-align: center;
    }
    .fc-qty-section {
        justify-content: center;
    }
    .fc-share-row {
        justify-content: center;
    }
    .fc-post-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .fc-post-nav a {
        max-width: 100%;
    }
    .fc-nav-next {
        text-align: left;
        margin-left: 0;
    }
    .fc-specs-table th {
        width: 45%;
        font-size: 13px;
    }
    .fc-specs-table th,
    .fc-specs-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fc-feature-grid {
        grid-template-columns: 1fr;
    }
    .fc-related-grid {
        grid-template-columns: 1fr;
    }
    .fc-gallery-main {
        height: 250px;
    }
    .fc-thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }
    .fc-thumb.fc-video-thumb {
        flex: 0 0 56px;
    }
    .fc-meta-row {
        font-size: 12px;
    }
}
