        /* 全局样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 页面整体布局 */
        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            background-color: #f8f9fa;
            padding: 40px 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 300px;
        }

        /* 页面标题 */
        .page-title {
            text-align: center;
            color: #212529;
            margin-bottom: 30px;
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            font-weight: 600;
        }
            .page-subtitle{
            text-align: center;
            color: #6c757d;
            }
        /* 友链容器：居中布局，限制最大宽度，一行两列核心配置 */
        .friend-link-container {
            padding-top: 60px;
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap; /* 自动换行，适配多卡片 */
            gap: 20px; /* 卡片之间的水平+垂直间距 */
            justify-content: space-between; /* 水平两端对齐，让卡片均匀分布 */
            margin-bottom: 50px; /* 与下方按钮拉开间距 */
        }

        /* 友链卡片核心样式：设置宽度，实现一行两个 */
        .friend-card {
            width: calc(50% - 10px); /* 50%宽度 - 间距的一半，刚好一行两个 */
            display: flex;
            align-items: center;
            background-color: #ffffff;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            cursor: pointer;
            transition: all 0.3s ease; /* 丝滑过渡放大和发光 */
            text-decoration: none; /* 去除链接下划线 */
            /* 防止卡片内容撑开宽度 */
            flex-shrink: 0;
        }

        /* 卡片悬停效果：放大 + 边缘发光 */
        .friend-card:hover {
            transform: scale(1.02); /* 轻微放大，不浮夸 */
            box-shadow: 0 0 15px 3px rgba(0, 123, 255, 0.3); /* 蓝色发光，可自定义 */
        }

        /* 左侧头像样式 */
        .friend-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%; /* 圆形头像 */
            object-fit: cover; /* 保持图片比例，不拉伸 */
            border: 2px solid #e9ecef;
            margin-right: 16px;
            flex-shrink: 0; /* 头像不被压缩 */
        }

        /* 右侧文字容器 */
        .friend-info {
            display: flex;
            flex-direction: column;
            gap: 6px; /* 名字和座右铭的间距 */
            flex: 1; /* 文字容器占满剩余宽度 */
        }

        /* 友链名字样式 */
        .friend-name {
            font-size: 18px;
            font-weight:700;
            color: #212529;
        }

        /* 友链座右铭样式 */
        .friend-motto {
            font-size: 14px;
            color: #6c757d;
            line-height: 1.5;
            /* 文字超出自动换行，不溢出卡片 */
            word-wrap: break-word;
        }

        /* 申请友链按钮样式 */
        .apply-friend-btn {
            display: block;
            width: 200px;
            height: 48px;
            line-height: 48px;
            text-align: center;
            background-color: #0d6efd;
            color: #ffffff;
            font-size: 16px;
            font-weight: 500;
            border-radius: 24px;
            text-decoration: none;
            margin: 0 auto;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            outline: none;
        }

        .apply-friend-btn:hover {
            background-color: #0b5ed7;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
        }

        /* 弹窗遮罩层：全屏灰色透明背景 */
        .modal-mask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.5);
            display: none; /* 默认隐藏 */
            justify-content: center;
            align-items: center;
            z-index: 999; /* 确保在最上层 */
        }

        /* 弹窗容器 */
        .modal-container {
            width: 90%;
            max-width: 500px;
            background-color: #ffffff;
            border-radius: 16px;
            padding: 32px;
            position: relative;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }

        /* 关闭弹窗按钮 */
        .close-modal-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            line-height: 32px;
            text-align: center;
            font-size: 20px;
            color: #6c757d;
            cursor: pointer;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .close-modal-btn:hover {
            background-color: #f8f9fa;
            color: #dc3545;
        }

        /* 弹窗标题 */
        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #212529;
            margin-bottom: 24px;
            text-align: center;
        }

        /* 表单样式 */
        .friend-apply-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* 表单输入项 */
        .form-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-item label {
            font-size: 14px;
            color: #212529;
            font-weight: 500;
        }

        .form-item input,
        .form-item textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            color: #212529;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .form-item input:focus,
        .form-item textarea:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        }

        .form-item textarea {
            min-height: 120px;
            resize: vertical; /* 允许垂直拉伸 */
            line-height: 1.5;
        }

        /* 表单提交按钮 */
        .form-submit-btn {
            width: 100%;
            height: 48px;
            background-color: #0d6efd;
            color: #ffffff;
            font-size: 16px;
            font-weight: 500;
            border-radius: 8px;
            border: none;
            outline: none;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 8px;
        }

        .form-submit-btn:hover {
            background-color: #0b5ed7;
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
        }

        /* 响应式适配：小屏幕下改为一行一个 */
        @media (max-width: 576px) {
            .friend-card {
                width: 100%; /* 移动端全屏宽度，一行一个 */
            }

            .friend-avatar {
                width: 50px;
                height: 50px;
                margin-right: 12px;
            }

            .friend-name {
                font-size: 16px;
            }

            .friend-motto {
                font-size: 13px;
            }

            .friend-card:hover {
                transform: scale(1.01); /* 移动端放大效果减弱，更自然 */
            }

            .modal-container {
                padding: 24px;
            }

            .apply-friend-btn {
                width: 180px;
                height: 44px;
                line-height: 44px;
                font-size: 15px;
            }
        }