.ymx-focus-container {
    width: 100%;
    margin: 0 auto auto;
    padding-top: 20px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
    background-color: var(--ymx-bg-page);
}

.ymx-focus-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.ymx-focus-main {
    flex: 1;
    min-width: 0;
    max-width: 820px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ymx-focus-main .ymx-latest-posts-header {
    margin: 0;
}

.ymx-focus-wrapper {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 6px;
    overflow: hidden;
}

.ymx-focus-main .ymx-micro-category-content {
    margin-top: 0;
}

.ymx-focus-layout .sidebar {
    flex: 0 0 360px;
    width: 360px;
    align-self: flex-start;
}

.ymx-focus {
    position: relative;
    width: 100%;
    height: 100%;
}

.ymx-focus-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ymx-focus-item.active {
    opacity: 1;
}

.ymx-focus-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ymx-focus-item a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.focus-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px 20px 50px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.ymx-focus-indicators {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.ymx-focus-indicators .indicator {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ymx-focus-indicators .indicator.active {
    background-color: #fff;
}

.ymx-focus-controls {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    transform: translateY(-50%);
}

.focus-prev,
.focus-next {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.focus-prev:hover,
.focus-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.ymx-focus-section {
    width: 100%;
}

.ymx-homepage-topics {
    margin: 0;
    width: 100%;
}

.ymx-homepage-topics .topics-grid {
    display: flex;
    gap: 14px;
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ymx-homepage-topics .topic-card {
    width: calc((100% - 28px) / 3);
    flex-shrink: 0;
    position: relative;
    aspect-ratio: 264 / 150;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.ymx-homepage-topics .topic-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ymx-homepage-topics .topic-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: #fff;
}

.ymx-homepage-topics .topic-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ymx-homepage-topics .topic-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.ymx-homepage-topics .topic-card-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}

.ymx-homepage-topics .topic-card-count-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ymx-homepage-topics .topic-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ymx-homepage-topics .topic-card-icon .icon {
    width: 12px;
    height: 12px;
    fill: #fff;
}

.ymx-homepage-topics .topic-card-count {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
    line-height: 1;
}

.ymx-homepage-topics .topic-card-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
}

.ymx-micro-category-content {
    padding: 20px;
    background: var(--ymx-bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.micro-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.micro-category-prefix {
    color: #ff5e52;
    font-weight: bold;
    font-size: 22px;
    white-space: nowrap;
}

.micro-category-title {
    color: var(--ymx-text-primary);
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
}

.micro-category-title:hover {
    color: var(--ymx-accent);
}

.micro-category-excerpt {
    margin: 0;
}

.micro-category-excerpt a {
    text-decoration: none;
    color: inherit;
}

.micro-category-excerpt p {
    color: var(--ymx-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

body.ymx-dark-mode .ymx-micro-category-content {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.ymx-dark-mode .micro-category-prefix {
    color: #ff6b6b;
}

body.ymx-dark-mode .micro-category-excerpt p {
    color: #bbbbbb;
}

@media (max-width: 1240px) and (min-width: 769px) {
    .ymx-focus-main {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .ymx-focus-layout .sidebar {
        flex: 0 0 360px;
        width: 360px;
    }
}

@media (max-width: 768px) {
    .ymx-focus-container {
        padding-top: 0;
    }

    .ymx-focus-layout {
        padding: 0;
    }

    .ymx-focus-main,
    .ymx-focus-wrapper {
        border-radius: 0;
    }

    .ymx-homepage-topics {
        margin: 0;
    }

    .ymx-homepage-topics .topics-grid {
        flex-direction: row;
        height: auto;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ymx-homepage-topics .topic-card {
        width: calc((100% - 28px) / 3);
        height: auto;
        aspect-ratio: 264 / 150;
    }

    .ymx-homepage-topics .topic-card-name {
        font-size: 14px;
    }

    .ymx-homepage-topics .topic-card-count {
        font-size: 12px;
    }

    .ymx-homepage-topics .topic-card-info {
        padding: 10px;
        gap: 6px;
    }

    .ymx-homepage-topics .topic-card-icon .icon {
        width: 10px;
        height: 10px;
    }

    .ymx-micro-category-container {
        margin: 0 0 30px 0;
        border-radius: 0;
    }

    .ymx-micro-category-content {
        padding: 15px;
        border-radius: 0;
        margin-top: 0;
        box-shadow: none;
    }

    .micro-category-header {
        align-items: flex-start;
        gap: 10px;
    }

    .micro-category-prefix {
        font-size: 18px;
    }

    .micro-category-title {
        font-size: 18px;
    }

    .micro-category-excerpt p {
        font-size: 13px;
    }
}
