/* ============================================================
   GouguCMS News Aggregation - Homepage Styles
   Blue Theme | Modern Minimalist
   ============================================================ */

/* ---------------------------------------------------------
   1. Page Layout (Main + Sidebar)
   --------------------------------------------------------- */
.main-body {
    padding-top: 64px;
}

.home-layout {
    display: flex;
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 40px;
}

.home-main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   2. Featured Section
   --------------------------------------------------------- */
.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:first-child {
    grid-column: 1 / -1;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(12, 45, 107, 0.15);
}

.featured-card .featured-img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:first-child .featured-img {
    height: 360px;
}

.featured-card:not(:first-child) .featured-img {
    height: 200px;
}

.featured-card:hover .featured-img {
    transform: scale(1.03);
}

.featured-card .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
}

.featured-card:first-child .featured-overlay {
    padding: 32px;
}

.featured-card .featured-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: #fff;
}

.featured-card:first-child .featured-title {
    font-size: 24px;
}

.featured-card .featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.featured-card .featured-meta .platform-badge {
    font-size: 11px;
    padding: 2px 8px;
}

/* ---------------------------------------------------------
   3. Filter Tabs (Platform Filtering)
   --------------------------------------------------------- */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #e8eef5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    font-size: 14px;
    color: #424242;
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-tab:hover {
    color: #1565c0;
    background: #e3f2fd;
}

.filter-tab.active {
    color: #fff;
    background: #1565c0;
    border-color: #1565c0;
}

.filter-tab .tab-count {
    margin-left: 6px;
    font-size: 12px;
    color: #757575;
}

.filter-tab.active .tab-count {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------
   4. News Card List
   --------------------------------------------------------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(12, 45, 107, 0.1);
    transform: translateY(-2px);
    border-color: #e3f2fd;
}

.news-card .card-img-wrap {
    position: relative;
    width: 220px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.news-card .card-img-wrap .platform-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.news-card .card-body {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card .card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
    margin: 0 0 10px;
    transition: color 0.2s ease;
}

.news-card:hover .card-title {
    color: #1565c0;
}

.news-card .card-desc {
    font-size: 14px;
    color: #757575;
    line-height: 1.7;
    margin: 0 0 14px;
}

.news-card .card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #9e9e9e;
}

.news-card .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card .card-meta i {
    font-size: 14px;
}

.news-card .card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.news-card .card-tag {
    font-size: 12px;
    padding: 2px 8px;
    color: #1565c0;
    background: #e3f2fd;
    border-radius: 4px;
}

/* ---------------------------------------------------------
   5. Sidebar
   --------------------------------------------------------- */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

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

.sidebar-card .sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.sidebar-card .sidebar-header a {
    font-size: 13px;
    color: #757575;
    transition: color 0.2s ease;
}

.sidebar-card .sidebar-header a:hover {
    color: #1565c0;
}

.sidebar-card .sidebar-body {
    padding: 16px 20px;
}

/* Hot List (Numbered ranking) */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

.hot-list li:last-child {
    border-bottom: none;
}

.hot-list li:hover {
    background: #fafafa;
}

.hot-list .rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #757575;
    background: #f5f5f5;
    flex-shrink: 0;
    margin-top: 2px;
}

.hot-list li:nth-child(1) .rank {
    background: #e53935;
    color: #fff;
}

.hot-list li:nth-child(2) .rank {
    background: #ff7043;
    color: #fff;
}

.hot-list li:nth-child(3) .rank {
    background: #ffa726;
    color: #fff;
}

.hot-list .hot-title {
    flex: 1;
    min-width: 0;
}

.hot-list .hot-title a {
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.6;
    display: block;
    transition: color 0.2s ease;
}

.hot-list .hot-title a:hover {
    color: #1565c0;
}

.hot-list .hot-views {
    font-size: 12px;
    color: #bdbdbd;
    margin-top: 4px;
}

/* Platform List */
.platform-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.platform-list li:last-child {
    border-bottom: none;
}

.platform-list .platform-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-list .platform-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.platform-list .platform-name {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
}

.platform-list .platform-count {
    font-size: 13px;
    color: #9e9e9e;
    background: #f5f5f5;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.quick-links li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: #424242;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.quick-links li a:hover {
    color: #1565c0;
    background: #e3f2fd;
}

.quick-links li a i {
    font-size: 15px;
    color: #757575;
}

.quick-links li a:hover i {
    color: #1565c0;
}

/* ---------------------------------------------------------
   6. Load More Button
   --------------------------------------------------------- */
.load-more-wrap {
    text-align: center;
    padding: 32px 0 16px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 40px;
    font-size: 15px;
    color: #1565c0;
    background: transparent;
    border: 2px solid #1565c0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
}

.load-more-btn:hover {
    background: #1565c0;
    color: #fff;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.25);
    transform: translateY(-1px);
}

.load-more-btn i {
    font-size: 16px;
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ---------------------------------------------------------
   7. Section Titles
   --------------------------------------------------------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1565c0;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.section-title .title-icon {
    width: 4px;
    height: 20px;
    background: #1565c0;
    border-radius: 2px;
}

.section-title .more-link {
    margin-left: auto;
    font-size: 13px;
    color: #757575;
}

.section-title .more-link:hover {
    color: #1565c0;
}

/* ---------------------------------------------------------
   8. Platform Bar (Horizontal Scrolling on Homepage)
   --------------------------------------------------------- */
.platform-bar {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 8px;
}

.platform-bar::-webkit-scrollbar {
    display: none;
}

.platform-bar .platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    padding: 14px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.platform-bar .platform-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 45, 107, 0.1);
    border-color: #e3f2fd;
}

.platform-bar .platform-item.active {
    border-color: #1565c0;
    background: #e3f2fd;
}

.platform-bar .platform-item .p-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.platform-bar .platform-item .p-name {
    font-size: 13px;
    color: #424242;
    font-weight: 500;
    white-space: nowrap;
}

.platform-bar .platform-item.active .p-name {
    color: #1565c0;
}

/* Platform icon backgrounds */
.p-icon.icon-xiaohongshu { background: #ff2d55; }
.p-icon.icon-wechat      { background: #07c160; }
.p-icon.icon-netease      { background: #c41e3a; }
.p-icon.icon-sohu         { background: #db4035; }
.p-icon.icon-baijiahao    { background: #2962ff; }
.p-icon.icon-website      { background: #2196f3; }

/* ---------------------------------------------------------
   9. Empty State
   --------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bdbdbd;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.empty-state .empty-text {
    font-size: 15px;
    color: #9e9e9e;
}

/* ---------------------------------------------------------
   10. Responsive - Tablet (max-width: 1024px)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .home-layout {
        gap: 20px;
    }

    .sidebar {
        width: 280px;
    }

    .news-card .card-img-wrap {
        width: 180px;
        min-height: 140px;
    }

    .news-card .card-body {
        padding: 16px 20px;
    }

    .featured-card:first-child .featured-img {
        height: 280px;
    }

    .featured-card:not(:first-child) .featured-img {
        height: 170px;
    }
}

/* ---------------------------------------------------------
   11. Responsive - Mobile (max-width: 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .main-body {
        padding-top: 56px;
    }

    .home-layout {
        flex-direction: column;
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 24px;
    }

    /* Sidebar hidden on mobile */
    .sidebar {
        display: none;
    }

    /* Featured mobile */
    .featured {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .featured-card:first-child .featured-img {
        height: 200px;
    }

    .featured-card:not(:first-child) .featured-img {
        height: 160px;
    }

    .featured-card:first-child .featured-title {
        font-size: 18px;
    }

    .featured-card .featured-title {
        font-size: 15px;
    }

    .featured-card .featured-overlay {
        padding: 16px;
    }

    .featured-card:first-child .featured-overlay {
        padding: 20px;
    }

    /* News cards stack vertically */
    .news-card {
        flex-direction: column;
    }

    .news-card .card-img-wrap {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }

    .news-card .card-body {
        padding: 16px;
    }

    .news-card .card-title {
        font-size: 16px;
    }

    .news-card .card-desc {
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* Filter tabs horizontal scroll */
    .filter-tabs {
        padding: 8px 0;
        margin-bottom: 16px;
        gap: 6px;
    }

    .filter-tab {
        padding: 6px 14px;
        font-size: 13px;
    }

    /* Platform bar mobile */
    .platform-bar {
        gap: 8px;
        padding: 12px 0;
    }

    .platform-bar .platform-item {
        min-width: 70px;
        padding: 10px 8px;
    }

    .platform-bar .platform-item .p-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .platform-bar .platform-item .p-name {
        font-size: 12px;
    }

    /* Section title */
    .section-title h2 {
        font-size: 17px;
    }

    /* Load more */
    .load-more-btn {
        padding: 10px 32px;
        font-size: 14px;
    }
}

/* ---------------------------------------------------------
   12. Legacy Banner Overrides (for original index.html)
   --------------------------------------------------------- */
.advantage-item {
    margin-bottom: 16px;
}

/* ---------------------------------------------------------
   13. Main Container Layout (content + sidebar)
   --------------------------------------------------------- */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 40px;
    display: flex;
    gap: 28px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* ---------------------------------------------------------
   14. News Section Wrapper
   --------------------------------------------------------- */
.news-section {
    margin-top: 8px;
}

/* ---------------------------------------------------------
   15. News Grid (Card layout for article lists)
   --------------------------------------------------------- */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card .news-thumb {
    position: relative;
    width: 220px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-card .news-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-thumb-img {
    transform: scale(1.05);
}

.news-thumb-platform {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.news-body {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
    margin: 0 0 10px;
    transition: color 0.2s ease;
}

.news-card:hover .news-title {
    color: #1565c0;
}

.news-desc {
    font-size: 14px;
    color: #757575;
    line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #9e9e9e;
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ---------------------------------------------------------
   15. Featured Tags (Hot / Recommend / Original)
   --------------------------------------------------------- */
.featured-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.featured-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.tag-hot {
    background: rgba(229, 57, 53, 0.2);
    color: #ff8a80;
}

.tag-recommend {
    background: rgba(255, 183, 77, 0.2);
    color: #ffd54f;
}

.tag-original {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

/* ---------------------------------------------------------
   16. Hot List Items (direct <a> children, not <li>)
   --------------------------------------------------------- */
.hot-list .hot-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
    color: #1a1a2e;
}

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

.hot-list .hot-item:hover {
    background: #fafafa;
}

.hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #757575;
    background: #f5f5f5;
    flex-shrink: 0;
    margin-top: 2px;
}

.hot-list .hot-item:nth-child(1) .hot-rank {
    background: #e53935;
    color: #fff;
}

.hot-list .hot-item:nth-child(2) .hot-rank {
    background: #ff7043;
    color: #fff;
}

.hot-list .hot-item:nth-child(3) .hot-rank {
    background: #ffa726;
    color: #fff;
}

.hot-heat {
    font-size: 12px;
    color: #bdbdbd;
    margin-top: 4px;
}

/* ---------------------------------------------------------
   17. Platform Items (direct <a> children in sidebar)
   --------------------------------------------------------- */
.platform-list .platform-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #f5f5f5;
    color: #1a1a2e;
    transition: background 0.2s ease;
}

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

.platform-list .platform-item:hover {
    background: #fafafa;
}

.platform-arrow {
    font-size: 18px;
    color: #bdbdbd;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   18. Quick Links (direct <a> children, not <li><a>)
   --------------------------------------------------------- */
.quick-links .quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: #424242;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.quick-links .quick-link:hover {
    color: #1565c0;
    background: #e3f2fd;
}

.quick-link-icon {
    font-size: 15px;
}

/* ---------------------------------------------------------
   19. Load More Wrapper
   --------------------------------------------------------- */
.load-more {
    text-align: center;
    padding: 32px 0 16px;
}

/* ---------------------------------------------------------
   20. Page Header (category / search / sources pages)
   --------------------------------------------------------- */
.page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8eef5;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.page-desc {
    font-size: 14px;
    color: #757575;
    margin: 0;
}

/* ---------------------------------------------------------
   21. Source Grid (sources.html page)
   --------------------------------------------------------- */
.source-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.source-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
    color: #1a1a2e;
}

.source-card:hover {
    box-shadow: 0 8px 24px rgba(12, 45, 107, 0.1);
    transform: translateY(-2px);
    border-color: #e3f2fd;
    color: #1a1a2e;
}

.source-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.source-card .source-info {
    flex: 1;
    min-width: 0;
}

.source-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.source-count {
    font-size: 13px;
    color: #9e9e9e;
}

.source-arrow {
    font-size: 24px;
    color: #bdbdbd;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.source-card:hover .source-arrow {
    color: #1565c0;
}

/* ---------------------------------------------------------
   22. Responsive - Tablet overrides
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-container {
        gap: 20px;
    }

    .sidebar {
        width: 280px;
    }

    .news-card .news-thumb {
        width: 180px;
        min-height: 140px;
    }

    .source-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   23. Responsive - Mobile overrides
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px 16px 24px;
    }

    .main-container .sidebar {
        display: none;
    }

    .news-card .news-thumb {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }

    .news-card:has(.news-thumb) {
        flex-direction: column;
    }

    .news-body {
        padding: 16px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-desc {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .page-title {
        font-size: 20px;
    }

    .source-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .source-card {
        padding: 16px;
    }

    .source-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ---------------------------------------------------------
   22. URL Collection Page (网址收录)
   --------------------------------------------------------- */
.url-submit-btn {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
.url-submit-btn:hover {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    box-shadow: 0 4px 12px rgba(21,101,192,0.3);
    transform: translateY(-1px);
}

.url-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.url-cat-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    background: #f0f0f0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.url-cat-tag:hover {
    background: #e3f2fd;
    color: #1565c0;
}
.url-cat-tag.active {
    background: #1565c0;
    color: #fff;
}

.url-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.url-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
}
.url-card:hover {
    border-color: #bbdefb;
    box-shadow: 0 4px 16px rgba(21,101,192,0.1);
    transform: translateY(-2px);
}

.url-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.url-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.url-card-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px;
    font-weight: 600;
    color: #1565c0;
}

.url-card-info {
    flex: 1;
    min-width: 0;
}
.url-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.url-card-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.url-card-tag {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    color: #1565c0;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 10px;
}
.url-card-arrow {
    color: #ccc;
    font-size: 22px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.url-card:hover .url-card-arrow {
    color: #1565c0;
}

.url-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.url-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.url-empty p {
    font-size: 15px;
}

/* Submit form inside layer popup */
.url-submit-form {
    padding: 24px;
}
.url-submit-form .form-group {
    margin-bottom: 18px;
}
.url-submit-form label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}
.url-submit-form .required {
    color: #e53935;
}
.url-submit-form input[type="text"],
.url-submit-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.url-submit-form input[type="text"]:focus,
.url-submit-form textarea:focus {
    border-color: #1565c0;
}
.url-submit-form textarea {
    resize: vertical;
}
.url-submit-confirm {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.url-submit-confirm:hover {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
}
.url-submit-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* URL Collection responsive */
@media (max-width: 1024px) {
    .url-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .url-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .url-card {
        padding: 14px 16px;
    }
    .url-submit-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
