/**
 * Beauty Circles Hub - 美业圈子 Hub 页面样式
 * Theme: Allure Circle (橘 #FF6A00 → 玫粉 #FF6FA5)
 */

:root {
    --ac-orange: #FF6A00;
    --ac-orange-light: #FF7E5C;
    --ac-pink: #FF6FA5;
    --ac-warm-bg: #fff5ec;
    --ac-warm-border: #ffd1a8;
    --ac-card-radius: 14px;
    --ac-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --ac-card-shadow-hover: 0 8px 22px rgba(255, 106, 0, 0.12);
    --ac-grad-main: linear-gradient(135deg, #FF6A00 0%, #FF6FA5 100%);
    --ac-text-primary: #1a1a1a;
    --ac-text-secondary: #4b5563;
    --ac-text-tertiary: #6b7280;
    --ac-text-light: #9ca3af;
    --ac-divider: #f1f3f5;
}

/* ====================================================================
 * 容器
 * ==================================================================== */
.circles-page {
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
    padding: 24px 0 60px;
}

.circles-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================================================
 * 顶部 Hero
 * ==================================================================== */
.circles-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff5ec 0%, #fff0f5 100%);
    border: 1px solid #ffe0c7;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 18px;
}

.circles-hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    background: var(--ac-grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.circles-hero-emoji {
    -webkit-text-fill-color: initial;
    background: none;
    color: initial;
    font-size: 32px;
}

.circles-hero-sub {
    color: var(--ac-text-tertiary);
    font-size: 16px;
    margin: 0;
    line-height: 1.7;
}

.circles-hero-right {
    flex: 0 0 auto;
}

.circles-hero-stat {
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    padding: 14px 26px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.08);
    white-space: nowrap;
    min-width: 120px;
}

.circles-hero-stat strong {
    font-size: 36px;
    font-weight: 800;
    background: var(--ac-grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: block;
    line-height: 1.2;
}

.circles-hero-stat em {
    font-style: normal;
    font-size: 13px;
    color: var(--ac-text-tertiary);
    display: block;
    margin-top: 4px;
}

/* ====================================================================
 * 三栏布局
 * ==================================================================== */
.circles-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: flex-start;
}

.circles-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 86px;
}

.circles-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ====================================================================
 * 通用卡片
 * ==================================================================== */
.circles-card {
    background: #fff;
    border-radius: var(--ac-card-radius);
    box-shadow: var(--ac-card-shadow);
    padding: 22px;
}

.circles-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ac-text-primary);
    line-height: 1.4;
    margin: 0 0 16px;
    padding-left: 12px;
    position: relative;
}

.circles-card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--ac-grad-main);
    border-radius: 2px;
}

.circles-card-foot-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ac-divider);
    color: var(--ac-text-tertiary);
    font-size: 14.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.circles-card-foot-link:hover {
    color: var(--ac-orange);
}

/* ====================================================================
 * 通用按钮
 * ==================================================================== */
.circles-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 22px;
    background: var(--ac-grad-main);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
}

.circles-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35);
    color: #fff;
}

/* ====================================================================
 * 左栏 · 用户卡片
 * ==================================================================== */
.circles-user-card {
    background: linear-gradient(135deg, #fff5ec 0%, #ffeef5 100%);
    border: 1px solid #ffe0c7;
}

.circles-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.circles-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.15);
}

.circles-user-meta {
    flex: 1;
    min-width: 0;
}

.circles-user-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ac-text-primary);
    line-height: 1.35;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.circles-user-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.circles-user-level,
.circles-user-points {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
}

.circles-user-level {
    background: var(--ac-grad-main);
}

.circles-user-points {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ac-orange);
    border: 1px solid #ffd1a8;
}

.circles-user-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--ac-text-tertiary);
    padding-top: 14px;
    border-top: 1px dashed #ffe0c7;
}

.circles-user-foot strong {
    color: var(--ac-orange);
    font-weight: 700;
}

.circles-user-foot a {
    color: var(--ac-orange);
    text-decoration: none;
    font-weight: 600;
}

.circles-user-guest {
    text-align: center;
    padding: 8px 4px;
}

.circles-user-guest-emoji {
    font-size: 40px;
    margin-bottom: 8px;
}

.circles-user-guest h4 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ac-text-primary);
}

.circles-user-guest p {
    font-size: 14px;
    color: var(--ac-text-tertiary);
    margin: 0 0 16px;
    line-height: 1.6;
}

/* ====================================================================
 * 左栏 · 圈子导航
 * ==================================================================== */
.circles-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.circles-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--ac-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.circles-nav-item:hover {
    background: var(--ac-warm-bg);
    color: var(--ac-orange);
}

.circles-nav-item.active {
    background: var(--ac-grad-main);
    color: #fff;
}

.circles-nav-item.active svg,
.circles-nav-item.active .circles-nav-count {
    color: #fff;
}

.circles-nav-item svg {
    flex-shrink: 0;
    color: var(--ac-text-light);
}

.circles-nav-item:hover svg {
    color: var(--ac-orange);
}

.circles-nav-item > span:not(.circles-nav-count) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.circles-nav-count {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 10px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    min-width: 24px;
    text-align: center;
}

.circles-nav-item:not(.active) .circles-nav-count {
    background: var(--ac-warm-bg);
    color: var(--ac-orange);
}

.circles-nav-divider {
    height: 1px;
    background: var(--ac-divider);
    margin: 12px 0;
}

.circles-nav-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--ac-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
    padding: 0 12px;
}

.circles-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.circles-mini-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ac-text-secondary);
    font-size: 14.5px;
    transition: background 0.15s, color 0.15s;
}

.circles-mini-list li a:hover {
    background: var(--ac-warm-bg);
    color: var(--ac-orange);
}

.circles-mini-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ====================================================================
 * 左栏 · 快捷操作
 * ==================================================================== */
.circles-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.circles-actions li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ac-text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.circles-actions li a span {
    font-size: 18px;
}

.circles-actions li a:hover {
    background: var(--ac-warm-bg);
    color: var(--ac-orange);
    padding-left: 14px;
}

/* ====================================================================
 * 中栏 · 圈子精选 Section Head
 * ==================================================================== */
.circles-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 14px;
}

.circles-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ac-text-primary);
    line-height: 1.35;
    margin: 0 0 6px;
    padding-left: 14px;
    position: relative;
}

.circles-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--ac-grad-main);
    border-radius: 2px;
}

.circles-section-sub {
    font-size: 14.5px;
    color: var(--ac-text-tertiary);
    margin: 0;
    padding-left: 14px;
    line-height: 1.55;
}

.circles-section-more {
    color: var(--ac-orange);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.circles-section-more:hover {
    opacity: 0.7;
    color: var(--ac-orange);
}

/* ====================================================================
 * 中栏 · 圈子精选 卡片墙
 * ==================================================================== */
.circles-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.circles-featured-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--ac-divider);
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
}

.circles-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ac-card-shadow-hover);
    border-color: #ffd1a8;
}

.circles-featured-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.circle-cover-img,
.circle-cover-fallback {
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
}

.circle-cover-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.circles-featured-info {
    flex: 1;
    min-width: 0;
}

.circles-featured-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ac-text-primary);
    line-height: 1.35;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 70px;
}

.circles-featured-desc {
    font-size: 14px;
    color: var(--ac-text-tertiary);
    margin: 0 0 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.circles-featured-stats {
    font-size: 13.5px;
    color: var(--ac-text-light);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 加入按钮 */
.circles-join-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border: 1px solid var(--ac-orange);
    background: var(--ac-grad-main);
    color: #fff;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    z-index: 2;
    font-family: inherit;
}

.circles-join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
}

.circles-join-btn.is-joined {
    background: #fff;
    color: var(--ac-orange);
    border: 1px solid #ffd1a8;
    box-shadow: none;
}

.circles-join-btn.is-joined:hover {
    background: #fff0e5;
    transform: none;
    box-shadow: none;
}

/* 创建你的圈子 */
.circles-create-card {
    align-items: center;
    background: linear-gradient(135deg, #fff5ec 0%, #ffeef5 100%);
    border: 1px dashed #ffd1a8;
}

.circles-create-card:hover {
    border-color: var(--ac-orange);
    transform: translateY(-2px);
    box-shadow: var(--ac-card-shadow-hover);
}

.circles-create-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--ac-grad-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 300;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
}

.circles-create-text {
    flex: 1;
    min-width: 0;
}

.circles-create-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ac-text-primary);
    line-height: 1.35;
    margin: 0 0 6px;
}

.circles-create-text p {
    font-size: 14px;
    color: var(--ac-text-tertiary);
    margin: 0;
    line-height: 1.6;
}

/* ====================================================================
 * 中栏 · Tab + 帖子流
 * ==================================================================== */
.circles-feed {
    padding-top: 22px;
}

.circles-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--ac-divider);
    margin: 0 0 18px;
    overflow-x: auto;
    overflow-y: hidden;
}

.circles-tab {
    padding: 12px 22px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ac-text-tertiary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s;
    font-family: inherit;
}

.circles-tab:hover {
    color: var(--ac-orange);
}

.circles-tab.active {
    color: var(--ac-orange);
}

.circles-tab.active::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 3px;
    background: var(--ac-grad-main);
    border-radius: 2px 2px 0 0;
}

.circles-subfilter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.circles-subbtn {
    padding: 7px 16px;
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    color: var(--ac-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.circles-subbtn:hover {
    background: var(--ac-warm-bg);
    color: var(--ac-orange);
}

.circles-subbtn.active {
    background: var(--ac-warm-bg);
    border-color: var(--ac-warm-border);
    color: var(--ac-orange);
    font-weight: 600;
}

/* 帖子列表 */
.circles-posts {
    display: flex;
    flex-direction: column;
}

.circles-post-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--ac-divider);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.circles-post-item:last-child {
    border-bottom: none;
}

.circles-post-content {
    flex: 1;
    min-width: 0;
}

.circles-post-cover {
    flex: 0 0 auto;
    width: 140px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f5;
    display: block;
    position: relative;
}

.circles-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.circles-post-cover:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .circles-post-item {
        gap: 12px;
    }
    .circles-post-cover {
        width: 100px;
        height: 80px;
    }
}

.circles-post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 8px;
}

.circles-post-title a {
    color: var(--ac-text-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.circles-post-title a:hover {
    color: var(--ac-orange);
}

.circles-post-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 6px;
    color: #fff;
    background: var(--ac-grad-main);
    vertical-align: middle;
    font-weight: 600;
}

.circles-post-from {
    font-size: 13.5px;
    margin-bottom: 10px;
}

.circles-post-from a {
    color: var(--ac-text-tertiary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--ac-warm-bg);
    border-radius: 10px;
    transition: all 0.15s;
}

.circles-post-from a:hover {
    background: var(--ac-orange);
    color: #fff;
}

.circles-post-from a:hover svg {
    color: #fff;
}

.circles-post-from strong {
    color: var(--ac-orange);
    font-weight: 600;
}

.circles-post-from a:hover strong {
    color: #fff;
}

.circles-post-excerpt {
    font-size: 15px;
    color: var(--ac-text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.circles-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--ac-text-light);
    flex-wrap: wrap;
    gap: 10px;
}

.circles-post-meta .meta-left,
.circles-post-meta .meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.circles-post-meta .meta-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ac-text-secondary);
}

.circles-post-meta .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.circles-post-meta .meta-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.circles-post-meta .meta-stat svg {
    color: var(--ac-text-light);
}

.circles-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--ac-text-light);
    font-size: 15.5px;
}

.circles-loadmore-wrap {
    text-align: center;
    padding-top: 24px;
}

.circles-loadmore-btn {
    padding: 12px 42px;
    background: #fff;
    color: var(--ac-orange);
    border: 1px solid var(--ac-warm-border);
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.circles-loadmore-btn:hover {
    background: var(--ac-grad-main);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
}

.circles-loadmore-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ====================================================================
 * 右栏 · 公告 / 热议 / 排行
 * ==================================================================== */
.circles-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.circles-news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--ac-divider);
    font-size: 14.5px;
}

.circles-news-list li:last-child {
    border-bottom: none;
}

.circles-news-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--ac-text-secondary);
    transition: color 0.15s;
}

.circles-news-list a:hover {
    color: var(--ac-orange);
}

.circles-news-list .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ac-orange);
    flex-shrink: 0;
}

.circles-news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.circles-news-time {
    color: var(--ac-text-light);
    font-size: 12px;
    flex-shrink: 0;
}

/* 标签云 */
.circles-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.circles-tag {
    display: inline-block;
    padding: 7px 14px;
    background: var(--ac-warm-bg);
    color: var(--ac-orange);
    border: 1px solid #ffe0c7;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.15s;
    font-weight: 600;
    line-height: 1.3;
}

.circles-tag:hover {
    background: var(--ac-grad-main);
    color: #fff;
    transform: translateY(-1px);
}

/* 排行榜列表 */
.circles-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.circles-rank-list li {
    border-bottom: 1px solid var(--ac-divider);
}

.circles-rank-list li:last-child {
    border-bottom: none;
}

.circles-rank-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    text-decoration: none;
    color: var(--ac-text-secondary);
    font-size: 14.5px;
    transition: padding-left 0.15s;
}

.circles-rank-list a:hover {
    padding-left: 4px;
}

.circles-rank-list a:hover .circles-rank-name {
    color: var(--ac-orange);
}

.circles-rank-no {
    width: 26px;
    height: 26px;
    background: #f1f3f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ac-text-tertiary);
    flex-shrink: 0;
}

.circles-rank-no.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FF9A00 100%);
    color: #fff;
}

.circles-rank-no.rank-2 {
    background: linear-gradient(135deg, #E5E7EB 0%, #B8BEC9 100%);
    color: #fff;
}

.circles-rank-no.rank-3 {
    background: linear-gradient(135deg, #FFD7B5 0%, #C97B3F 100%);
    color: #fff;
}

.circles-rank-list img,
.circles-rank-thumb-fallback {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.circles-rank-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ac-grad-main);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.circles-rank-users img {
    border-radius: 50%;
}

.circles-rank-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--ac-text-primary);
    transition: color 0.15s;
}

.circles-rank-count {
    font-size: 13px;
    color: var(--ac-orange);
    font-weight: 600;
    flex-shrink: 0;
}

.circles-rank-level {
    font-size: 12px;
    background: var(--ac-warm-bg);
    color: var(--ac-orange);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--ac-warm-border);
    flex-shrink: 0;
}

/* 签到卡 */
.circles-checkin-card {
    background: var(--ac-grad-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.circles-checkin-card .circles-checkin-text h4 {
    font-size: 17px;
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.35;
}

.circles-checkin-card .circles-checkin-text p {
    font-size: 13.5px;
    margin: 0;
    opacity: 0.92;
    line-height: 1.55;
}

.circles-checkin-card .circles-btn-primary {
    background: #fff;
    color: var(--ac-orange);
    box-shadow: none;
    flex-shrink: 0;
    padding: 9px 18px;
}

.circles-checkin-card .circles-btn-primary:hover {
    background: #fff5ec;
    color: var(--ac-orange);
}

/* ====================================================================
 * 响应式
 * ==================================================================== */
@media (max-width: 1280px) {
    .circles-layout {
        grid-template-columns: 260px minmax(0, 1fr) 300px;
        gap: 20px;
    }
}

@media (max-width: 1100px) {
    .circles-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 20px;
    }
    .circles-aside-right {
        grid-column: 1 / -1;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .circles-page {
        padding: 16px 0 40px;
    }
    .circles-container {
        padding: 0 12px;
    }
    .circles-hero {
        padding: 18px 18px;
    }
    .circles-hero-title {
        font-size: 26px;
    }
    .circles-hero-sub {
        font-size: 15px;
    }
    .circles-hero-stat strong {
        font-size: 26px;
    }
    .circles-section-title {
        font-size: 20px;
    }
    .circles-card-title {
        font-size: 17px;
    }
    .circles-post-title {
        font-size: 17px;
    }
    .circles-post-excerpt {
        font-size: 14.5px;
    }
    .circles-layout {
        grid-template-columns: 1fr;
    }
    .circles-aside,
    .circles-aside-right {
        position: static;
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    .circles-featured-grid {
        grid-template-columns: 1fr;
    }
    .circles-featured-name {
        padding-right: 56px;
    }
    .circles-card {
        padding: 16px;
    }
}
