/**
 * 推荐田野 & 推荐岛屿 - Islands Art
 * 全宽布局 - 图片填充卡片设计
 */

/* ========================================
   田野卡片网格（全宽布局）
   ======================================== */

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

@media (min-width: 640px) {
    .fieldnotes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 900px) {
    .fieldnotes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .fieldnotes-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1400px) {
    .fieldnotes-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ========================================
   田野卡片样式（图片填充）
   ======================================== */

.fieldnote-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.fieldnote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* 封面图 */
.fieldnote-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 无图占位 */
.fieldnote-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.fieldnote-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.15);
}

/* 渐变遮罩 */
.fieldnote-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
}

/* 顶部标签区 */
.fieldnote-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.fieldnote-tag {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tag-pin {
    color: #fff;
    background: rgba(255, 149, 0, 0.9);
}

.tag-video {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    font-size: 12px;
}

/* 底部信息区 */
.fieldnote-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    z-index: 2;
}

/* 所属岛屿 */
.fieldnote-island {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.island-dot {
    width: 5px;
    height: 5px;
    background: #0071e3;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 标题 */
.fieldnote-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 底栏 */
.fieldnote-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fieldnote-author {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-name {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fieldnote-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.fieldnote-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.fieldnote-stats i {
    font-size: 12px;
}


/* ========================================
   岛屿卡片网格（全宽布局）
   ======================================== */

.islands-section {
    margin-top: 3rem;
}

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

@media (min-width: 640px) {
    .islands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 900px) {
    .islands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .islands-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1400px) {
    .islands-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ========================================
   岛屿卡片样式
   ======================================== */

.island-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.island-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.island-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 岛屿封面 */
.island-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.island-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.island-card:hover .island-cover img {
    transform: scale(1.05);
}

/* 岛屿信息 */
.island-body {
    padding: 12px;
}

.island-name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.island-desc {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #6e6e73;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 33px;
}

.island-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #86868b;
}

.island-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 岛屿操作按钮 */
.island-action {
    padding: 0 12px 12px;
}

.island-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.island-btn-join {
    background: #1d1d1f;
    color: white;
}

.island-btn-join:hover {
    background: #424245;
    transform: scale(1.02);
}

.island-btn-joined {
    background: #f5f5f7;
    color: #34c759;
}

.island-btn-joined:hover {
    background: #ffe5e5;
    color: #ff3b30;
}

.island-btn-manage {
    background: #f5f5f7;
    color: #1d1d1f;
}

.island-btn-manage:hover {
    background: #e8e8ed;
}


/* ========================================
   响应式微调
   ======================================== */

@media (max-width: 500px) {
    .fieldnote-card {
        border-radius: 12px;
    }
    
    .fieldnote-bottom {
        padding: 10px;
    }
    
    .fieldnote-title {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .fieldnote-island {
        font-size: 10px;
    }
    
    .author-avatar {
        width: 18px;
        height: 18px;
    }
    
    .author-name {
        font-size: 10px;
    }
    
    .fieldnote-stats {
        font-size: 10px;
        gap: 8px;
    }
    
    .island-card {
        border-radius: 12px;
    }
    
    .island-body {
        padding: 10px;
    }
    
    .island-name {
        font-size: 13px;
    }
    
    .island-desc {
        font-size: 11px;
        min-height: 30px;
    }
    
    .island-action {
        padding: 0 10px 10px;
    }
    
    .island-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
}
