        .friends-section {
            padding: 60px 0;
            position: relative;
        }
        
        .friends-header {
            text-align: center;
            margin-bottom: 40px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .friends-header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--primary-color);
            position: relative;
            display: inline-block;
        }
        
        .friends-header h1:after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), #6c8eff);
            border-radius: 2px;
        }
        
        .friends-header p {
            color: #64748b;
            font-size: 1.1rem;
            line-height: 1.7;
            margin-top: 25px;
        }
        
        body.dark-mode .friends-header p {
            color: #94a3b8;
        }
        
        .friends-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 40px;
            position: relative;
        }
        
        .search-container {
            width: 100%;
            max-width: 500px;
            position: relative;
            margin-bottom: 20px;
        }
        
        .search-container i {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #64748b;
        }
        
        body.dark-mode .search-container i {
            color: #94a3b8;
        }
        
        #search-input {
            width: 100%;
            padding: 14px 20px 14px 50px;
            border: 2px solid #e2e8f0;
            border-radius: 50px;
            font-size: 1rem;
            background-color: var(--light-card);
            color: var(--text-dark);
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }
        
        body.dark-mode #search-input {
            border-color: #334155;
            background-color: var(--dark-card);
            color: var(--text-light);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        #search-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.2);
        }
        
        .friends-grid-container {
            position: relative;
            padding-bottom: 80px; /* 为按钮留出空间 */
        }
        
        .friends-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
        }
        
        .friend-card {
            background-color: var(--light-card);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            height: 140px; /* 固定卡片高度 */
            border: 1px solid #e2e8f0;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .friend-card:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), #6c8eff);
            opacity: 0;
            transition: var(--transition);
        }
        
        body.dark-mode .friend-card {
            background-color: var(--dark-card);
            border-color: #334155;
        }
        
        .friend-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
            border-color: var(--primary-color);
        }
        
        .friend-card:hover:before {
            opacity: 1;
        }
        
        .friend-logo {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            margin-right: 15px;
            object-fit: cover;
            background-color: #f1f5f9;
            padding: 6px;
            flex-shrink: 0;
        }
        
        body.dark-mode .friend-logo {
            background-color: #1e293b;
        }
        
        .friend-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .friend-content h3 {
            font-size: 1.15rem;
            margin-bottom: 8px;
            color: var(--text-dark);
        }
        
        body.dark-mode .friend-content h3 {
            color: var(--text-light);
        }
        
        .friend-description {
            color: #64748b;
            font-size: 0.85rem;
            line-height: 1.5;
            display: -webkit-box;
            /* -webkit-line-clamp: 2; */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        body.dark-mode .friend-description {
            color: #94a3b8;
        }
        
        .friend-link {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
        }
        
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px;
            background-color: var(--light-card);
            border-radius: var(--border-radius);
            margin-top: 20px;
        }
        
        body.dark-mode .no-results {
            background-color: var(--dark-card);
        }
        
        .no-results i {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }
        
        .no-results p {
            color: #64748b;
            font-size: 1.1rem;
        }
        
        body.dark-mode .no-results p {
            color: #94a3b8;
        }
        
        .friends-count {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 1rem;
            background: rgba(74, 108, 247, 0.1);
            padding: 6px 15px;
            border-radius: 50px;
        }
        
        /* 申请友链按钮 - 现在在友情链接板块内 */
        .apply-button {
            position: absolute;
            bottom: 20px;
            left: 0;
            z-index: 10;
            display: flex;
            align-items: center;
            padding: 12px 22px;
            background: var(--primary-color);
            color: white;
            border-radius: 50px;
            box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
            cursor: pointer;
            transition: var(--transition);
            border: none;
            font-size: 1rem;
            font-weight: 600;
        }
        
        .apply-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(74, 108, 247, 0.5);
        }
        
        .apply-button i {
            margin-right: 10px;
            font-size: 1.2rem;
        }
        
        /* 模态框样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-container {
            background-color: var(--light-card);
            border-radius: var(--border-radius);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            transform: translateY(20px);
            transition: transform 0.3s ease;
            position: relative;
        }
        
        body.dark-mode .modal-container {
            background-color: var(--dark-card);
        }
        
        .modal-overlay.active .modal-container {
            transform: translateY(0);
        }
        
        .modal-header {
            padding: 25px 30px 15px;
            position: relative;
            border-bottom: 1px solid #e2e8f0;
        }
        
        body.dark-mode .modal-header {
            border-color: #334155;
        }
        
        .modal-header h2 {
            font-size: 1.8rem;
            margin: 0;
            color: var(--primary-color);
            display: flex;
            align-items: center;
        }
        
        .modal-header h2 i {
            margin-right: 10px;
        }
        
        .close-modal {
            position: absolute;
            top: 25px;
            right: 25px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #64748b;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .close-modal:hover {
            color: var(--primary-color);
            transform: rotate(90deg);
        }
        
        .modal-body {
            padding: 25px 30px 30px;
        }
        
        .modal-description {
            color: #64748b;
            font-size: 1.05rem;
            line-height: 1.6;
            margin-bottom: 25px;
        }
        
        body.dark-mode .modal-description {
            color: #94a3b8;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-dark);
        }
        
        body.dark-mode .form-group label {
            color: var(--text-light);
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #e2e8f0;
            border-radius: var(--border-radius);
            background-color: var(--light-card);
            color: var(--text-dark);
            font-size: 1rem;
            transition: var(--transition);
        }
        
        body.dark-mode .form-group input,
        body.dark-mode .form-group textarea {
            border-color: #334155;
            background-color: var(--dark-card);
            color: var(--text-light);
        }
        
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
        }
        
        .submit-btn {
            width: 100%;
            padding: 16px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .submit-btn:hover {
            background: #4a6cff;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
        }
        
        .submit-btn:active {
            transform: translateY(0);
        }
        
        .submit-btn i {
            margin-right: 10px;
        }
        
        .success-message {
            display: none;
            text-align: center;
            padding: 30px;
            background: rgba(74, 108, 247, 0.05);
            border-radius: var(--border-radius);
            margin-top: 30px;
            animation: fadeIn 0.5s ease-out;
        }
        
        .success-message i {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .success-message h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        
        .success-message p {
            color: #64748b;
        }
        
        body.dark-mode .success-message p {
            color: #94a3b8;
        }
        
        .loading {
            display: none;
            text-align: center;
            padding: 20px;
        }
        
        .loading-spinner {
            border: 4px solid rgba(74, 108, 247, 0.1);
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .friends-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 900px) {
            .friends-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .friends-grid {
                grid-template-columns: 1fr;
            }
            
            .friends-header h1 {
                font-size: 2rem;
            }
            
            .friend-card {
                height: auto;
                min-height: 140px;
            }
            
            .apply-button {
                position: relative;
                bottom: auto;
                left: auto;
                margin-top: 20px;
                width: 100%;
                text-align: center;
            }
            
            .friends-grid-container {
                padding-bottom: 30px;
            }
            
            .modal-container {
                max-width: 90%;
            }
        }
        
        @media (max-width: 480px) {
            .friends-header h1 {
                font-size: 1.8rem;
            }
            
            .friends-header p {
                font-size: 1rem;
            }
            
            .modal-header h2 {
                font-size: 1.5rem;
            }
            
            .modal-body {
                padding: 20px 15px;
            }
        }
        
        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .friend-card {
            animation: fadeIn 0.4s ease-out forwards;
            opacity: 0;
        }
        
        /* 延迟动画效果 */
        .friend-card:nth-child(1) { animation-delay: 0.1s; }
        .friend-card:nth-child(2) { animation-delay: 0.2s; }
        .friend-card:nth-child(3) { animation-delay: 0.3s; }
        .friend-card:nth-child(4) { animation-delay: 0.4s; }
        .friend-card:nth-child(5) { animation-delay: 0.5s; }
        .friend-card:nth-child(6) { animation-delay: 0.6s; }
        .friend-card:nth-child(7) { animation-delay: 0.7s; }
        .friend-card:nth-child(8) { animation-delay: 0.8s; }
        .friend-card:nth-child(9) { animation-delay: 0.9s; }