/* ===== PC PORTAL LAYOUT ===== */
@media (min-width: 769px) {
    :root {
        --max-width: 1200px;
        --pc-sidebar-w: 320px;
        --pc-main-gap: 28px;
        --pc-header-h: 64px;
        --pc-nav-h: 48px;
        --primary: #c52b2b;
        --primary-dark: #a00;
        --primary-light: #fff5f5;
    }

    html { scroll-behavior: smooth; }

    /* ===== APP WRAPPER ===== */
    .app-wrapper { background: #f0f2f5; min-height: 100vh; }

    /* ===== WIDTH RESET — remove mobile 720px limit ===== */
    .container { max-width: 100% !important; padding: 0 !important; }

    /* ===== HEADER ===== */
    .site-header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
    .header-top { height: var(--pc-header-h); max-width: var(--max-width); margin: 0 auto; padding: 0 24px; border-bottom: none; display: flex; align-items: center; }
    .header-top-inner { display: flex; align-items: center; gap: 24px; width: 100%; }
    .site-logo { font-size: 24px; letter-spacing: 1px; }
    .logo-desc { display: inline; font-size: 13px; }
    .header-search { flex: 1; max-width: 420px; }
    .header-search .search-input { height: 40px; font-size: 14px; padding-left: 42px; border-radius: 20px; background: #f5f5f5; border: 1px solid transparent; }
    .header-search .search-input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(197,43,43,0.1); }
    .header-search .search-icon { left: 16px; font-size: 16px; }
    .header-right { gap: 12px; }
    .btn-publish { padding: 7px 20px; font-size: 14px; border-radius: 20px; }
    .header-btn { padding: 7px 20px; font-size: 14px; border-radius: 20px; border: 1px solid var(--border); }
    .nav-toggle { display: none !important; }
    .user-avatar-sm { width: 36px; height: 36px; font-size: 15px; }
    .dropdown-menu { min-width: 150px; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }

    /* ===== NAV BAR ===== */
    .header-tabs {
        height: var(--pc-nav-h); background: #fff;
        border-bottom: 1px solid #ebebeb;
        display: flex !important; justify-content: center;
        position: static; box-shadow: none;
    }
    .nav-backdrop { display: none !important; }
    .tabs-inner {
        max-width: var(--max-width);
        height: 100%;
        display: flex; align-items: center; justify-content: center;
        padding: 0 24px; gap: 0;
    }
    .tab-link {
        height: 100%; padding: 0 22px; font-size: 15px; font-weight: 500;
        color: #555; border-bottom: 2px solid transparent;
        transition: all 0.2s; position: relative;
    }
    .tab-link.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
    .tab-link:hover { color: var(--primary); }

    /* ===== MAIN CONTENT — centered 1200px ===== */
    .main-content { max-width: var(--max-width); margin: 0 auto; padding: 24px; min-height: auto; }

    /* ===== HERO CAROUSEL ===== */
    .hero-carousel { margin: 0 0 24px; border-radius: 12px; overflow: hidden; }
    .hero-slide { height: 380px; border-radius: 12px; }
    .hero-slide img { border-radius: 12px; }
    .hero-slide-overlay { padding: 24px 28px; border-radius: 0 0 12px 12px; }
    .hero-slide-title { font-size: 22px; }
    .hero-dots { bottom: 14px; right: 18px; }
    .hero-dot { width: 8px; height: 8px; }
    .hero-dot.active { width: 22px; }

    /* ===== CONTENT LAYOUT (2-COLUMN GRID) ===== */
    .content-layout { display: grid; grid-template-columns: 1fr var(--pc-sidebar-w); gap: var(--pc-main-gap); }
    .content-sidebar { display: block !important; }

    /* ===== SECTION HEADER ===== */
    .section-header { padding: 20px 0 12px; border-bottom: 1px solid #ebebeb; margin-bottom: 0; }
    .section-title { font-size: 20px; }

    /* ===== NEWS FEED ===== */
    .news-feed { margin-top: 16px; }
    .news-card {
        padding: 18px 20px; background: #fff; border-bottom: 1px solid #f2f3f5;
        border-radius: 0; transition: all 0.2s;
    }
    .news-card:first-child { border-radius: 12px 12px 0 0; }
    .news-card:last-child { border-radius: 0 0 12px 12px; border-bottom: none; }
    .news-card:only-child { border-radius: 12px; }
    .news-card:hover { background: #fafbfc; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transform: translateY(-1px); }
    .news-card-img { width: 200px; height: 130px; border-radius: 8px; }
    .news-card-title { font-size: 17px; line-height: 1.5; -webkit-line-clamp: 2; }
    .news-card-meta { font-size: 13px; margin-top: 8px; gap: 12px; }
    .news-card-meta .tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
    .vid-badge { padding: 2px 8px; font-size: 11px; border-radius: 3px; }

    /* ===== SIDEBAR ===== */
    .content-sidebar {
        position: sticky; top: calc(var(--pc-header-h) + var(--pc-nav-h) + 24px);
        align-self: start; max-height: calc(100vh - var(--pc-header-h) - var(--pc-nav-h) - 48px);
        overflow-y: auto;
    }
    .sidebar-section {
        background: #fff; border-radius: 12px; padding: 20px;
        margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .sidebar-section h4 {
        font-size: 15px; font-weight: 700; color: #222; margin-bottom: 14px;
        padding-bottom: 10px; border-bottom: 2px solid var(--primary); position: relative;
    }
    .sidebar-section h4::after {
        content: ''; position: absolute; bottom: -2px; left: 0;
        width: 28px; height: 2px; background: var(--primary);
    }
    .sidebar-hot-list { list-style: none; }
    .sidebar-hot-list li {
        display: flex; align-items: flex-start; gap: 10px;
        padding: 10px 0; border-bottom: 1px solid #f5f5f5;
    }
    .sidebar-hot-list li:last-child { border-bottom: none; }
    .sidebar-hot-list .hot-num {
        width: 22px; height: 22px; border-radius: 4px; font-size: 12px; font-weight: 700;
        display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        background: #f0f0f0; color: #999;
    }
    .sidebar-hot-list li:nth-child(1) .hot-num,
    .sidebar-hot-list li:nth-child(2) .hot-num,
    .sidebar-hot-list li:nth-child(3) .hot-num {
        background: var(--primary); color: #fff;
    }
    .sidebar-hot-list .hot-title {
        font-size: 14px; color: #333; line-height: 1.45; flex: 1;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .sidebar-hot-list .hot-title:hover { color: var(--primary); }
    .sidebar-hot-list .hot-title:visited { color: #555; }
    .sidebar-cats { display: flex; flex-wrap: wrap; gap: 8px; }
    .sidebar-cats a {
        padding: 6px 14px; border-radius: 20px; font-size: 13px;
        background: #f5f5f5; color: #555; transition: all 0.15s;
    }
    .sidebar-cats a:hover { background: var(--primary); color: #fff; }
    .sidebar-about p { font-size: 13px; color: #777; line-height: 1.7; }

    /* ===== POST DETAIL ===== */
    .post-detail { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; }
    .detail-wrap { padding: 28px 32px; }
    .detail-title { font-size: 28px; margin-bottom: 16px; font-weight: 800; }
    .detail-byline { font-size: 14px; }
    .detail-content { font-size: 17px; line-height: 2; }
    .detail-content p { margin-bottom: 22px; }
    .detail-content img { border-radius: 8px; margin: 20px 0; }
    .detail-cover img { border-radius: 8px; max-height: 420px; object-fit: cover; }
    .detail-grid { gap: 6px; }
    .detail-tags { gap: 10px; }
    .detail-tag { padding: 5px 14px; font-size: 13px; border-radius: 20px; }
    .detail-actions { padding: 20px 0; }
    .detail-like-btn { font-size: 14px; padding: 8px 18px; border-radius: 20px; }
    .detail-like-btn.liked { background: var(--primary-light); }
    .detail-poster-btn { padding: 8px 18px; border-radius: 20px; font-size: 14px; }
    .detail-copyright { margin-top: 16px; }
    .detail-copyright .disclaimer-box { border-radius: 8px; padding: 16px; }

    /* ===== COMMENTS ===== */
    .comments-section { padding: 24px 32px; }
    .comments-section h3 { font-size: 18px; margin-bottom: 20px; }
    .comment-form { display: flex; gap: 12px; align-items: flex-start; }
    .comment-form .form-input { font-size: 14px; flex: 1; }
    .comment-form .btn { white-space: nowrap; }
    .comment-item { padding: 16px 0; }
    .comment-avatar { width: 40px; height: 40px; }

    /* ===== FOOTER ===== */
    .site-footer {
        display: block !important; background: #1a1a2e; color: #aab;
        margin-top: 40px;
    }
    .footer-inner {
        max-width: var(--max-width); margin: 0 auto;
        padding: 40px 24px 20px; display: grid;
        grid-template-columns: 1fr 1fr 1fr; gap: 32px;
    }
    .footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
    .footer-col a { display: block; color: #8899aa; font-size: 13px; padding: 4px 0; transition: color 0.2s; }
    .footer-col a:hover { color: #fff; }
    .footer-col p { font-size: 13px; color: #8899aa; line-height: 1.8; }
    .footer-bottom {
        max-width: var(--max-width); margin: 0 auto;
        padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08);
        text-align: center; font-size: 13px; color: #667;
    }
    .footer-bottom p { color: #667; }
    .site-footer .container { max-width: 100% !important; padding: 0 !important; }

    /* ===== LOAD MORE ===== */
    .load-more { margin-top: 8px; padding: 20px 0; }
    .load-more-btn {
        padding: 10px 48px; font-size: 14px; border-radius: 24px;
        background: #fff; border: 1.5px solid #ddd; color: #666;
        transition: all 0.2s;
    }
    .load-more-btn:hover {
        border-color: var(--primary); color: var(--primary);
        box-shadow: 0 2px 8px rgba(197,43,43,0.1);
    }


    /* ===== PROFILE ===== */
    .profile-header { padding: 24px 0; }
    .profile-posts .news-card { padding-left: 18px; padding-right: 18px; }

    /* ===== GO TOP ===== */
    .bottom-bar { bottom: 32px; right: 32px; }

    /* ===== SETTINGS / CREATE ===== */
    .settings-page { max-width: 600px; margin: 0 auto; }
    .create-page { max-width: 800px; margin: 0 auto; }
}

