:root {
    --island-bg-top: #f5f9fd;
    --island-bg-mid: #f3fbfa;
    --island-bg-bottom: #f8f6ef;
    --island-card: #ffffff;
    --island-ink: #1e2c42;
    --island-text: #334a66;
    --island-muted: #72849d;
    --island-line: #e5e7eb;
    --island-accent: #0f766e;
    --island-accent-soft: #dff3f0;
    --island-warm: #f59e0b;
}

.island-show-page {
    font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    background: #ffffff;
    color: var(--island-text);
}

/* ========== Hero 区域 ========== */
.island-hero-card {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    animation: island-rise-in 0.55s ease both;
}

.island-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.island-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
    transform: scale(1.03);
}

.island-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(21, 34, 57, 0.84) 0%, rgba(22, 56, 83, 0.74) 48%, rgba(13, 83, 90, 0.7) 100%),
        radial-gradient(circle at 78% 14%, rgba(134, 239, 210, 0.22) 0%, rgba(134, 239, 210, 0) 46%);
}

.island-hero-content {
    position: relative;
    z-index: 2;
    padding: 34px;
}

.island-hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.island-hero-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.island-hero-avatar {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.36);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(8, 16, 30, 0.25);
    flex-shrink: 0;
}

.island-hero-info {
    flex: 1;
    min-width: 0;
}

.island-hero-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.island-hero-title-row h1 {
    margin: 0;
    font-size: 29px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: 0.01em;
    color: #f7fbff;
}

.island-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.island-badge.recommend {
    color: #854d0e;
    background: rgba(252, 211, 77, 0.93);
}

.island-badge.private {
    color: #7f1d1d;
    background: rgba(254, 202, 202, 0.9);
}

.island-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.island-hero-stats {
    display: flex;
    gap: 16px;
}

.island-hero-stats span {
    font-size: 14px;
    color: rgba(238, 247, 255, 0.78);
}

.island-hero-stats strong {
    margin-right: 4px;
    color: #ffffff;
    font-weight: 700;
}

.island-hero-divider {
    width: 1px;
    height: 20px;
    background: rgba(218, 237, 255, 0.34);
}

.island-hero-owner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 7px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    transition: all 0.24s ease;
}

.island-hero-owner:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.island-hero-owner img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.island-hero-owner span {
    font-size: 12px;
    color: rgba(238, 247, 255, 0.84);
}

.island-hero-owner strong {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

.island-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.island-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.island-btn svg {
    width: 16px;
    height: 16px;
}

.island-btn.primary {
    color: #0f2b36;
    background: linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
    box-shadow: 0 6px 14px rgba(8, 46, 67, 0.18);
}

.island-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(8, 46, 67, 0.22);
}

.island-btn.secondary {
    color: #eff7ff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.island-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.island-btn.danger {
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
    box-shadow: 0 6px 14px rgba(127, 29, 29, 0.22);
}

.island-btn.danger:hover {
    background: #b91c1c;
}

/* ========== 筛选栏 ========== */
.island-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--island-line);
    box-shadow: none;
    backdrop-filter: blur(8px);
    animation: island-rise-in 0.65s ease both;
}

.island-filter-nav {
    display: flex;
    gap: 4px;
}

.island-filter-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 8px 16px;
    border-radius: 11px;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.island-filter-nav a:hover {
    color: #111827;
    background: #f3f4f6;
}

.island-filter-nav a.active {
    color: #111827;
    background: #f3f4f6;
    box-shadow: none;
}

.island-filter-count {
    padding: 0 12px;
    font-size: 13px;
    color: var(--island-muted);
    white-space: nowrap;
}

/* ========== 田野卡片 ========== */
.topic-card {
    position: relative;
    background: var(--island-card);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
    box-shadow: none;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.topic-card:hover {
    transform: translateY(-2px);
    border-color: #e5e7eb;
    box-shadow: none;
}

.topic-rec-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #7c430f;
    background: linear-gradient(180deg, #fde68a 0%, #f9c853 100%);
}

.topic-card-inner {
    display: flex;
    flex-direction: column;
}

.topic-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.topic-user-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
}

.topic-user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-decoration: none;
}

.topic-user-link img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    object-fit: cover;
}

.topic-user-link span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 620;
    color: #33506d;
    transition: color 0.2s ease;
}

.topic-user-link:hover span {
    color: #1d3f64;
}

.topic-dot {
    font-size: 12px;
    color: #a2b2c3;
}

.topic-time {
    font-size: 12px;
    font-weight: 500;
    color: #8296ab;
}

.topic-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    text-decoration: none;
    color: #6b4011;
    background: linear-gradient(180deg, #fceab2 0%, #f6ce68 100%);
    box-shadow: inset 0 0 0 1px rgba(185, 116, 20, 0.2);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.topic-event-badge:hover {
    transform: translateY(-1px);
}

.topic-event-badge svg {
    width: 12px;
    height: 12px;
}

.topic-event-badge span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
}

.topic-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.topic-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
}

.topic-meta-chip-record {
    color: #1e4f93;
    background: #e9f1fd;
}

.topic-meta-chip-status {
    color: #146c53;
    background: #e7f8f1;
}

.topic-meta-chip-next {
    color: #8c4a08;
    background: #fff3d6;
}

.topic-title-link {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.topic-title {
    margin: 0;
    padding-right: 80px;
    color: var(--island-ink);
    font-size: 20px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    font-weight: 750;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.topic-title-link:hover .topic-title {
    color: #0f5f63;
}

.topic-tag {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.topic-tag.top {
    color: #e7f8f6;
    background: #0c5e59;
}

.topic-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.65;
    color: var(--island-text);
}

.topic-images {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}

.topic-image-item {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eaf2f8;
    border: 1px solid #e5e7eb;
    position: relative;
}

.topic-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.topic-image-item:hover img {
    transform: scale(1.05);
}

.topic-image-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: rgba(14, 33, 55, 0.55);
}

.topic-footer {
    display: flex;
    gap: 18px;
    padding-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7e93a9;
}

/* ========== 侧边栏 ========== */
.sidebar-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sidebar-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 750;
    color: var(--island-ink);
}

.sidebar-header .sidebar-title {
    margin: 0;
}

.sidebar-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #ebf7f4;
    color: #1d6b64;
    transition: all 0.2s ease;
}

.sidebar-add-btn:hover {
    background: #0f766e;
    color: #fff;
}

.sidebar-add-btn svg {
    width: 14px;
    height: 14px;
}

.island-event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.island-event-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.island-event-item:hover {
    background: #eef7fb;
}

.island-event-cover {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.island-event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.island-event-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 5px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 700;
    color: #684111;
    background: linear-gradient(180deg, #fce39b 0%, #f3c968 100%);
}

.island-event-status {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
}

.island-event-status.active { background: rgba(37, 99, 235, 0.88); }
.island-event-status.upcoming { background: rgba(22, 163, 74, 0.85); }
.island-event-status.ended { background: rgba(100, 116, 139, 0.85); }

.island-event-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.island-event-title {
    margin: 0 0 4px;
    color: var(--island-ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.island-event-date {
    color: var(--island-muted);
    font-size: 11px;
}

.island-event-empty {
    text-align: center;
    padding: 16px 0;
}

.island-event-empty p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--island-muted);
}

.island-event-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff !important;
    background: #0f766e;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.island-event-empty-btn:hover {
    color: #fff !important;
    background: #0d625c;
}

.sidebar-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #32516a;
    background: #e8f1f8;
}

.sidebar-desc {
    margin: 0 0 12px;
    color: var(--island-text);
    font-size: 14px;
    line-height: 1.64;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sidebar-tags a {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    color: #32516a;
    background: #ebf2f8;
    transition: all 0.2s ease;
}

.sidebar-tags a:hover {
    color: #173a59;
    background: #dbe9f4;
}

.sidebar-info {
    padding-top: 12px;
    border-top: 1px solid #e4edf6;
    color: #7d91a8;
    font-size: 12px;
}

.sidebar-admins {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sidebar-admin:hover {
    background: #edf7fb;
}

.sidebar-admin img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-admin-info {
    display: flex;
    flex-direction: column;
}

.sidebar-admin-info .name {
    color: var(--island-ink);
    font-size: 14px;
    font-weight: 600;
}

.sidebar-admin-info .role {
    color: var(--island-muted);
    font-size: 11px;
}

.sidebar-admin.owner .sidebar-admin-info .role {
    color: #b57413;
}

.sidebar-members {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sidebar-member {
    display: block;
}

.sidebar-member img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.sidebar-member:hover img {
    transform: scale(1.04);
}

.sidebar-empty-text {
    margin: 0;
    padding: 16px 0;
    text-align: center;
    color: var(--island-muted);
    font-size: 13px;
}

/* ========== 空状态 ========== */
.island-empty {
    text-align: center;
    padding: 66px 20px;
    border-radius: 18px;
    border: 1px dashed #c9d8e6;
    background: rgba(255, 255, 255, 0.7);
}

.island-empty h3 {
    margin: 0 0 8px;
    color: var(--island-ink);
    font-size: 19px;
    font-weight: 750;
}

.island-empty p {
    margin: 0 0 20px;
    color: var(--island-muted);
    font-size: 14px;
}

.island-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ecf5fd 0%, #e2f1fb 100%);
}

.island-empty-icon svg {
    width: 40px;
    height: 40px;
    color: #95aac0;
}

.island-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    background: #0f766e;
    font-size: 14px;
    font-weight: 650;
    transition: all 0.2s ease;
}

.island-empty-btn:hover {
    background: #0d625c;
    color: #fff;
}

.island-empty-btn svg {
    width: 16px;
    height: 16px;
}

/* ========== 加载动画 ========== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes island-rise-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .island-hero-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .island-hero-actions {
        justify-content: flex-start;
    }

    .topic-title {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .island-show-page {
        background: #ffffff;
    }

    .island-hero-content {
        padding: 22px 20px;
    }

    .island-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .island-hero-avatar {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }

    .island-hero-title-row {
        justify-content: center;
    }

    .island-hero-title-row h1 {
        font-size: 23px;
    }

    .island-hero-meta {
        justify-content: center;
    }

    .island-hero-actions {
        justify-content: center;
        width: 100%;
    }

    .island-btn {
        min-width: 108px;
    }

    .island-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .island-filter-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .island-filter-nav a {
        min-width: 0;
        padding: 8px 10px;
    }

    .island-filter-count {
        text-align: center;
        padding: 0;
    }

    .topic-card {
        padding: 16px;
        border-radius: 16px;
    }

    .topic-user-bar {
        align-items: flex-start;
    }

    .topic-event-badge {
        margin-top: 2px;
    }

    .topic-meta-chip {
        font-size: 10px;
        padding: 3px 8px;
    }

    .topic-title {
        padding-right: 0;
        font-size: 18px;
        -webkit-line-clamp: 2;
    }

    .topic-rec-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 8px;
    }

    .topic-summary {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .topic-images {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .topic-image-item {
        width: 100px;
        height: 100px;
    }

    .topic-footer {
        gap: 12px;
        flex-wrap: wrap;
    }

    .island-empty {
        padding: 48px 16px;
    }
}
