        /* 友链分组 */
        .friend-section {
            margin-bottom: 50px;
            /* 保持横向并列，允许换行 */
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
            align-items: flex-start;
        }

        /* 每个 .friend-cards 作为一个紧凑的列容器，不占满整行，
           当一个 .friend-cards 内有多个卡片时也按列排列，和“项目开发者”组行为一致 */
        .friend-cards {
            display: inline-grid;
            grid-auto-flow: column;
            grid-auto-columns: 320px;
            /* 固定卡片显示宽度，长宽保持不变 */
            gap: 18px;
            align-items: start;
            vertical-align: top;
            min-width: 0;
        }

        .friend-card {
            position: relative;
            display: flex;
            flex-direction: column;
            background: var(--card-bg);
            border-radius: 12px;
            padding: 16px;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
            border: 1px solid var(--border-color);
            text-decoration: none;
            /* 移除下划线 */
            overflow: hidden;
            box-sizing: border-box;
            height: auto;
            /* 不强制等高，标签区贴底 */
            width: 100%;
            /* 适配 grid-auto-columns 指定的宽度 */
            max-width: 320px;
            break-inside: avoid;
        }

        /* 让卡片内容撑满高度，标签区贴底 */
        .friend-header+.friend-desc {
            margin-bottom: 12px;
        }

        .friend-tags {
            margin-top: auto;
        }

        .friend-header {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .friend-avatar {
            width: 54px;
            height: 54px;
            border-radius: 12px;
            /* 方形圆角头像 */
            object-fit: cover;
            transition: transform 0.3s ease;
        }

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

        .friend-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 4px;
        }

        .friend-link {
            font-size: 0.85rem;
            color: var(--themecolor);
            opacity: 0.8;
        }

        .friend-desc {
            margin-top: 12px;
            font-size: 0.9rem;
            color: var(--text-color);
            opacity: 0.8;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .friend-tags {
            margin-top: 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .friend-tag {
            padding: 3px 8px;
            font-size: 0.75rem;
            border-radius: 6px;
            background: var(--bg-color);
            color: var(--text-color);
            opacity: 0.8;
        }

        /* 暗色模式适配 */
        [data-theme="dark"] .friend-card:hover {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        /* 申请友链部分 */
        .apply-section {
            margin-top: 50px;
            padding-top: 30px;
            border-top: 1px solid var(--border-color);
        }

        .tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 20px;
        }

        .tab {
            padding: 12px 25px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
        }

        .tab.active {
            border-bottom: 2px solid var(--themecolor);
            color: var(--themecolor);
        }

        .tab-content {
            display: none;
            padding: 20px 0;
        }

        .tab-content.active {
            display: block;
        }

        .blog-info {
            background-color: rgba(234, 134, 143, 0.1);
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 20px;
        }

        .info-title {
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--themecolor);
            font-size: 1.2rem;
        }

        .info-item {
            margin-bottom: 10px;
            display: flex;
        }

        .info-label {
            min-width: 80px;
            font-weight: 500;
        }

        .requirements {
            margin-bottom: 20px;
        }

        .requirement-list {
            padding-left: 20px;
            margin: 20px 0;
        }

        .requirement-list li {
            margin-bottom: 10px;
            line-height: 1.5;
        }

        .code-block {
            background-color: #2d2d2d;
            color: #f8f8f2;
            padding: 20px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            overflow-x: auto;
            margin: 20px 0;
            line-height: 1.5;
        }