@charset "utf-8";

/* ===== Tag Archive Page ===== */
.tag-archive-page .tag-archive-section {
    padding: 28px 0 50px;
}

/* Hero */
.tag-hero {
    margin: 10px 0 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    border-radius: 20px;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.tag-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 28%),
        radial-gradient(circle at left center, rgba(59,130,246,.28), transparent 24%);
    pointer-events: none;
}

.tag-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 36px;
}

.tag-hero-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    margin-bottom: 16px;
}

.tag-title {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

.tag-desc {
    margin: 0;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
}

.tag-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag-meta-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
    color: #fff;
}

/* switcher */
.tag-view-switcher {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.tag-switch-btn {
    appearance: none;
    border: 1px solid #dbe3f0;
    background: #fff;
    color: #334155;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.tag-switch-btn:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f8fafc;
}

.tag-switch-btn.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* block */
.tag-block {
    margin-top: 28px;
}

.tag-block-header {
    margin-bottom: 18px;
}

.tag-block-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

.tag-block-header p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
}

/* ===== News Section ===== */
.tag-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
}

.tag-news-item {
    padding: 26px 28px;
    border-bottom: 1px solid #eceff3;
    transition: background .25s ease;
}

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

.tag-news-item:hover {
    background: #fafcff;
}

.tag-news-topmeta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag-news-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.tag-news-date {
    font-size: 13px;
    color: #6b7280;
}

.tag-news-title {
    margin: 0 0 12px;
    font-size: 29px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tag-news-title a {
    color: #111827;
    text-decoration: none;
}

.tag-news-title a:hover {
    color: #1d4ed8;
}

.tag-news-excerpt {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    max-width: 920px;
    white-space: pre-line;
}

.tag-news-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tag-news-readmore {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #dbe3f0;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s ease;
    text-decoration: none;
}

.tag-news-readmore:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

/* ===== Tools Section ===== */
.tag-tools-block .tag-block-header {
    margin-bottom: 10px;
}

.tag-tools-grid {
    margin-top: 22px;
}

.tag-archive-page .app-card {
    min-height: 260px;
}

.tag-archive-page .app-alias {
    width: auto;
    max-width: 100%;
}

.tag-news-block + .tag-tools-block {
    margin-top: 48px;
}

/* pagebar */
.tag-archive-page .pagebar {
    margin-top: 36px;
}

/* Responsive */
@media (max-width: 992px) {
    .tag-hero-inner {
        padding: 34px 24px;
    }

    .tag-title {
        font-size: 34px;
    }

    .tag-news-title {
        font-size: 24px;
    }

    .tag-news-item {
        padding: 22px 22px;
    }
}

@media (max-width: 768px) {
    .tag-archive-page .tag-archive-section {
        padding-top: 18px;
    }

    .tag-hero-inner {
        padding: 28px 18px;
    }

    .tag-title {
        font-size: 28px;
    }

    .tag-desc {
        font-size: 15px;
    }

    .tag-block-header h2 {
        font-size: 22px;
    }

    .tag-news-title {
        font-size: 21px;
        line-height: 1.4;
    }

    .tag-news-excerpt {
        font-size: 14px;
    }

    .tag-news-item {
        padding: 18px 16px;
    }

    .tag-view-switcher {
        gap: 8px;
    }

    .tag-switch-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tag-meta {
        gap: 8px;
    }

    .tag-meta-item {
        font-size: 12px;
        padding: 6px 10px;
    }

    .tag-title {
        font-size: 24px;
    }

    .tag-news-title {
        font-size: 18px;
    }
}
